-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added "code" parameter to selections
- Loading branch information
Franck Allimant
committed
Dec 30, 2020
1 parent
a60e474
commit 66f328b
Showing
30 changed files
with
480 additions
and
234 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; |
Oops, something went wrong.