crystal-gauntlet/db/migrations/10_next_ids.sql
Jill d4e930e424 switch all auto-incrementing ids to a single tracking system
this is to prevent ids from overlapping after a level is deleted

this WILL cause issues on older databases. i will not be responsible
2023-01-02 16:32:31 +03:00

8 lines
142 B
SQL

-- +migrate up
CREATE TABLE next_id (
name TEXT NOT NULL,
id INTEGER NOT NULL DEFAULT 0
);
-- +migrate down
DROP TABLE next_id;