Skip to content

Commit

Permalink
migration test
Browse files Browse the repository at this point in the history
  • Loading branch information
chronolaw committed Sep 20, 2024
1 parent 7b54b46 commit 9f8cd29
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions spec/05-migration/db/migrations/core/024_370_to_380_spec.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
local uh = require "spec/upgrade_helpers"

describe("database migration", function()
uh.old_after_up("has created the \"clustering_sync_version\" table", function()
assert.database_has_relation("clustering_sync_version")
assert.table_has_column("clustering_sync_version", "version", "serial")
end)

uh.old_after_up("has created the \"clustering_sync_delta\" table", function()
assert.database_has_relation("clustering_sync_delta")
assert.table_has_column("clustering_sync_delta", "version", "int")
assert.table_has_column("clustering_sync_delta", "type", "text")
assert.table_has_column("clustering_sync_delta", "id", "uuid")
assert.table_has_column("clustering_sync_delta", "ws_id", "uuid")
assert.table_has_column("clustering_sync_delta", "row", "json")
end)
end)

0 comments on commit 9f8cd29

Please sign in to comment.