feat: refs #6968 Transactioned and isTriggerDisabled
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
9f9662924d
commit
cffc1964b6
|
@ -0,0 +1,16 @@
|
|||
START TRANSACTION;
|
||||
|
||||
SET @isTriggerDisabled = TRUE;
|
||||
|
||||
ALTER TABLE vn.buy ADD groupingMode2 enum('grouping', 'packing') DEFAULT NULL NULL;
|
||||
ALTER TABLE vn.buy CHANGE groupingMode2 groupingMode2 enum('grouping', 'packing') DEFAULT NULL NULL AFTER groupingMode;
|
||||
|
||||
UPDATE vn.buy SET groupingMode2 = 'packing' WHERE groupingMode = 2;
|
||||
UPDATE vn.buy SET groupingMode2 = 'grouping' WHERE groupingMode = 1;
|
||||
|
||||
ALTER TABLE vn.buy DROP COLUMN groupingMode;
|
||||
ALTER TABLE vn.buy CHANGE groupingMode2 groupingMode enum('grouping','packing') CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL NULL;
|
||||
|
||||
SET @isTriggerDisabled = FALSE;
|
||||
|
||||
COMMIT;
|
|
@ -1,2 +0,0 @@
|
|||
ALTER TABLE vn.buy ADD groupingMode2 enum('grouping', 'packing') DEFAULT NULL NULL;
|
||||
ALTER TABLE vn.buy CHANGE groupingMode2 groupingMode2 enum('grouping', 'packing') DEFAULT NULL NULL AFTER groupingMode;
|
|
@ -1,7 +0,0 @@
|
|||
UPDATE vn.buy
|
||||
SET groupingMode2 = 'packing'
|
||||
WHERE groupingMode = 2;
|
||||
|
||||
UPDATE vn.buy
|
||||
SET groupingMode2 = 'grouping'
|
||||
WHERE groupingMode = 1;
|
|
@ -1,2 +0,0 @@
|
|||
ALTER TABLE vn.buy DROP COLUMN groupingMode;
|
||||
ALTER TABLE vn.buy CHANGE groupingMode2 groupingMode enum('grouping','packing') CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL NULL;
|
Loading…
Reference in New Issue