On continue à adapter le template...
This commit is contained in:
11
local/modules/Selection/Config/update/1.1.13.sql
Normal file
11
local/modules/Selection/Config/update/1.1.13.sql
Normal file
@@ -0,0 +1,11 @@
|
||||
SET FOREIGN_KEY_CHECKS = 0;
|
||||
|
||||
-- Add the 'code' column to the selection tables.
|
||||
ALTER TABLE `selection` ADD `code` varchar(255) NOT NULL AFTER `visible`;
|
||||
ALTER TABLE `selection_container` ADD `code` varchar(255) NOT NULL AFTER `visible`;
|
||||
|
||||
-- Generate a pseudo-code for each existing selection
|
||||
UPDATE `selection` set `code` = CONCAT('selection_', id);
|
||||
UPDATE `selection_container` set `code` = CONCAT('container_', id);
|
||||
|
||||
SET FOREIGN_KEY_CHECKS = 1;
|
||||
Reference in New Issue
Block a user