Skip to content

Commit

Permalink
Add procedures to mitigate installtion errors on update (#388)
Browse files Browse the repository at this point in the history
  • Loading branch information
Akkarinage authored Jun 1, 2024
1 parent cd96819 commit d6d9b73
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
8 changes: 7 additions & 1 deletion data/schemas/charmapdb/cp_itemshop.20081109093448.sql
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
ALTER TABLE `cp_itemshop` ADD `use_existing` TINYINT NOT NULL DEFAULT '0' AFTER `info`;
DROP PROCEDURE IF EXISTS cp_itemshop_20081109093448;
CREATE PROCEDURE cp_itemshop_20081109093448() BEGIN
DECLARE CONTINUE HANDLER FOR 1060 BEGIN END;
ALTER TABLE `cp_itemshop` ADD `use_existing` TINYINT NOT NULL DEFAULT '0' AFTER `info`;
END;
CALL cp_itemshop_20081109093448();
DROP PROCEDURE cp_itemshop_20081109093448;
8 changes: 7 additions & 1 deletion data/schemas/charmapdb/cp_itemshop.20090104190020.sql
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
ALTER TABLE `cp_itemshop` ADD `category` INT(11) NULL AFTER `nameid`;
DROP PROCEDURE IF EXISTS cp_itemshop_20090104190020;
CREATE PROCEDURE cp_itemshop_20090104190020() BEGIN
DECLARE CONTINUE HANDLER FOR 1060 BEGIN END;
ALTER TABLE `cp_itemshop` ADD `category` INT(11) NULL AFTER `nameid`;
END;
CALL cp_itemshop_20090104190020();
DROP PROCEDURE cp_itemshop_20090104190020;
7 changes: 6 additions & 1 deletion data/schemas/charmapdb/cp_redeemlog.20081001054354.sql
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
DROP PROCEDURE IF EXISTS cp_redeemlog_20081001054354;
CREATE PROCEDURE cp_redeemlog_20081001054354() BEGIN
DECLARE CONTINUE HANDLER FOR 1060 BEGIN END;
ALTER TABLE `cp_redeemlog`
ADD `credits_before` INT( 10 ) NOT NULL ,
ADD `credits_after` INT( 10 ) NOT NULL;
ADD `credits_after` INT( 10 ) NOT NULL;END;
CALL cp_redeemlog_20081001054354();
DROP PROCEDURE cp_redeemlog_20081001054354;

0 comments on commit d6d9b73

Please sign in to comment.