pastebin/migrations/2019-12-25-161106_implementation-ordering/up.sql
2019-12-25 17:21:16 +01:00

6 lines
242 B
SQL

TRUNCATE implementation_wrappers;
DELETE FROM implementations;
ALTER TABLE implementations ADD COLUMN ordering int NOT NULL;
ALTER TABLE implementations ADD CONSTRAINT implementations_language_id_ordering_key UNIQUE (language_id, ordering);