pastebin/migrations/2019-12-25-161106_implementation-ordering/up.sql

6 lines
242 B
MySQL
Raw Normal View History

2019-12-25 16:21:16 +00:00
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);