addons-server/migrations/11-collection-users-id.sql

5 строки
171 B
SQL

ALTER TABLE collections_users
ADD UNIQUE (collection_id, user_id),
DROP PRIMARY KEY,
ADD COLUMN id INTEGER UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY KEY FIRST;