addons-server/migrations/05-applications-versions-id...

5 строки
179 B
SQL

ALTER TABLE applications_versions
ADD UNIQUE (application_id, version_id),
DROP PRIMARY KEY,
ADD COLUMN id INTEGER UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY KEY FIRST;