addons-server/migrations/158-add-backup-button.sql

3 строки
186 B
SQL

ALTER TABLE addons ADD COLUMN backup_version int(11) unsigned;
ALTER TABLE addons ADD CONSTRAINT addons_ibfk_16 FOREIGN KEY (backup_version) REFERENCES versions (id) ON DELETE SET NULL;