Initial commit
This commit is contained in:
5
init/03_add_pkey.sql
Normal file
5
init/03_add_pkey.sql
Normal file
@@ -0,0 +1,5 @@
|
||||
-- Drop the existing primary key
|
||||
ALTER TABLE puzzles DROP CONSTRAINT puzzles_pkey;
|
||||
|
||||
-- Add new auto-incrementing primary key while keeping PuzzleId
|
||||
ALTER TABLE puzzles ADD COLUMN pkey BIGSERIAL PRIMARY KEY;
|
||||
Reference in New Issue
Block a user