addons-server/migrations/29-collection-recs.sql

7 строки
294 B
MySQL
Исходник Обычный вид История

ALTER TABLE collections
ADD COLUMN `addon_index` varchar(40) NULL,
ADD COLUMN `recommended_collection_id` int(11) unsigned NULL,
ADD FOREIGN KEY (`recommended_collection_id`) REFERENCES `collections` (`id`);
CREATE INDEX `collections_addon_index` ON `collections` (`addon_index`);