Skip to content

Commit

Permalink
rename db id to pk
Browse files Browse the repository at this point in the history
  • Loading branch information
chronolaw committed Oct 28, 2024
1 parent 150fa2d commit 17d96c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion kong/db/migrations/core/024_370_to_380.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ return {
CREATE TABLE IF NOT EXISTS clustering_sync_delta (
"version" INT NOT NULL,
"type" TEXT NOT NULL,
"id" UUID NOT NULL,
"pk" UUID NOT NULL,
"ws_id" UUID NOT NULL,
"row" JSON,
FOREIGN KEY (version) REFERENCES clustering_sync_version(version) ON DELETE CASCADE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ describe("database migration", function()
assert.database_has_relation("clustering_sync_delta")
assert.table_has_column("clustering_sync_delta", "version", "integer")
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", "pk", "uuid")
assert.table_has_column("clustering_sync_delta", "ws_id", "uuid")
assert.table_has_column("clustering_sync_delta", "row", "json")
end)
Expand Down

0 comments on commit 17d96c7

Please sign in to comment.