addons-server/migrations/04-addons_categories-ids.sql

5 строки
170 B
SQL

ALTER TABLE addons_categories
ADD UNIQUE (addon_id, category_id),
DROP PRIMARY KEY,
ADD COLUMN id INTEGER UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY KEY FIRST;