addons-server/migrations/50-collections-author.sql

4 строки
141 B
SQL

ALTER TABLE collections
ADD COLUMN `author_id` int(11) UNSIGNED,
ADD CONSTRAINT FOREIGN KEY (`author_id`) REFERENCES `users` (`id`);