-
Notifications
You must be signed in to change notification settings - Fork 755
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
http://hercules.ws/board/topic/3886-hercules-1st-2014-megapatch/ Signed-off-by: shennetsind <ind@henn.et>
- Loading branch information
1 parent
56649bd
commit 82b583b
Showing
34 changed files
with
2,144 additions
and
1,274 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
#1388854043 | ||
ALTER TABLE `mapreg` ADD PRIMARY KEY (`varname`, `index`); | ||
ALTER TABLE `mapreg` DROP INDEX `varname`; | ||
ALTER TABLE `mapreg` DROP INDEX `index`; | ||
ALTER TABLE `mapreg` MODIFY `varname` varchar(32) BINARY NOT NULL; | ||
CREATE TABLE IF NOT EXISTS `acc_reg_num_db` ( | ||
`account_id` int(11) unsigned NOT NULL default '0', | ||
`key` varchar(32) BINARY NOT NULL default '', | ||
`index` int(11) unsigned NOT NULL default '0', | ||
`value` int(11) NOT NULL default '0', | ||
PRIMARY KEY (`account_id`,`key`,`index`), | ||
KEY `account_id` (`account_id`) | ||
) ENGINE=MyISAM; | ||
CREATE TABLE IF NOT EXISTS `acc_reg_str_db` ( | ||
`account_id` int(11) unsigned NOT NULL default '0', | ||
`key` varchar(32) BINARY NOT NULL default '', | ||
`index` int(11) unsigned NOT NULL default '0', | ||
`value` varchar(254) NOT NULL default '0', | ||
PRIMARY KEY (`account_id`,`key`,`index`), | ||
KEY `account_id` (`account_id`) | ||
) ENGINE=MyISAM; | ||
CREATE TABLE IF NOT EXISTS `char_reg_num_db` ( | ||
`char_id` int(11) unsigned NOT NULL default '0', | ||
`key` varchar(32) BINARY NOT NULL default '', | ||
`index` int(11) unsigned NOT NULL default '0', | ||
`value` int(11) NOT NULL default '0', | ||
PRIMARY KEY (`char_id`,`key`,`index`), | ||
KEY `char_id` (`char_id`) | ||
) ENGINE=MyISAM; | ||
CREATE TABLE IF NOT EXISTS `char_reg_str_db` ( | ||
`char_id` int(11) unsigned NOT NULL default '0', | ||
`key` varchar(32) BINARY NOT NULL default '', | ||
`index` int(11) unsigned NOT NULL default '0', | ||
`value` varchar(254) NOT NULL default '0', | ||
PRIMARY KEY (`char_id`,`key`,`index`), | ||
KEY `char_id` (`char_id`) | ||
) ENGINE=MyISAM; | ||
CREATE TABLE IF NOT EXISTS `global_acc_reg_num_db` ( | ||
`account_id` int(11) unsigned NOT NULL default '0', | ||
`key` varchar(32) BINARY NOT NULL default '', | ||
`index` int(11) unsigned NOT NULL default '0', | ||
`value` int(11) NOT NULL default '0', | ||
PRIMARY KEY (`account_id`,`key`,`index`), | ||
KEY `account_id` (`account_id`) | ||
) ENGINE=MyISAM; | ||
CREATE TABLE IF NOT EXISTS `global_acc_reg_str_db` ( | ||
`account_id` int(11) unsigned NOT NULL default '0', | ||
`key` varchar(32) BINARY NOT NULL default '', | ||
`index` int(11) unsigned NOT NULL default '0', | ||
`value` varchar(254) NOT NULL default '0', | ||
PRIMARY KEY (`account_id`,`key`,`index`), | ||
KEY `account_id` (`account_id`) | ||
) ENGINE=MyISAM; | ||
INSERT INTO `acc_reg_num_db` (`account_id`, `key`, `index`, `value`) SELECT `account_id`, `str`, 0, `value` FROM `global_reg_value` WHERE `type` = 2 AND `str` NOT LIKE '%$'; | ||
INSERT INTO `acc_reg_str_db` (`account_id`, `key`, `index`, `value`) SELECT `account_id`, `str`, 0, `value` FROM `global_reg_value` WHERE `type` = 2 AND `str` LIKE '%$'; | ||
INSERT INTO `char_reg_num_db` (`char_id`, `key`, `index`, `value`) SELECT `char_id`, `str`, 0, `value` FROM `global_reg_value` WHERE `type` = 3 AND `str` NOT LIKE '%$'; | ||
INSERT INTO `char_reg_str_db` (`char_id`, `key`, `index`, `value`) SELECT `char_id`, `str`, 0, `value` FROM `global_reg_value` WHERE `type` = 3 AND `str` LIKE '%$'; | ||
INSERT INTO `global_acc_reg_num_db` (`account_id`, `key`, `index`, `value`) SELECT `account_id`, `str`, 0, `value` FROM `global_reg_value` WHERE `type` = 1 AND `str` NOT LIKE '%$'; | ||
INSERT INTO `global_acc_reg_str_db` (`account_id`, `key`, `index`, `value`) SELECT `account_id`, `str`, 0, `value` FROM `global_reg_value` WHERE `type` = 1 AND `str` LIKE '%$'; | ||
#DROP TABLE `global_reg_value`; | ||
INSERT INTO `sql_updates` (`timestamp`) VALUES (1388854043); |
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 |
---|---|---|
|
@@ -16,4 +16,5 @@ | |
2013-11-16--07-49.sql | ||
2013-11-18--08-23.sql | ||
2013-12-24--00-15.sql | ||
2014-01-04--16-47.sql | ||
2014-01-06--17-22.sql |
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
Oops, something went wrong.