summaryrefslogtreecommitdiff
path: root/sql-files/upgrades/2014-01-04--16-47.sql
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-05 11:34:32 +0300
committerAndrei Karas <akaras@inbox.ru>2019-06-26 21:14:20 +0300
commit610130172552889d6dfb4c5ebc964bb90fdc73d2 (patch)
tree79b344a1753308a461c7a27613f92fc7f67a08ee /sql-files/upgrades/2014-01-04--16-47.sql
parentba2840f8462390889ad5f3031b5bcc3068e3aba5 (diff)
downloadhercules-610130172552889d6dfb4c5ebc964bb90fdc73d2.tar.gz
hercules-610130172552889d6dfb4c5ebc964bb90fdc73d2.tar.bz2
hercules-610130172552889d6dfb4c5ebc964bb90fdc73d2.tar.xz
hercules-610130172552889d6dfb4c5ebc964bb90fdc73d2.zip
Remove conf dir.
Diffstat (limited to 'sql-files/upgrades/2014-01-04--16-47.sql')
-rw-r--r--sql-files/upgrades/2014-01-04--16-47.sql80
1 files changed, 0 insertions, 80 deletions
diff --git a/sql-files/upgrades/2014-01-04--16-47.sql b/sql-files/upgrades/2014-01-04--16-47.sql
deleted file mode 100644
index 966381ab6..000000000
--- a/sql-files/upgrades/2014-01-04--16-47.sql
+++ /dev/null
@@ -1,80 +0,0 @@
-#1388854043
-
--- This file is part of Hercules.
--- http://herc.ws - http://github.com/HerculesWS/Hercules
---
--- Copyright (C) 2014-2015 Hercules Dev Team
---
--- Hercules is free software: you can redistribute it and/or modify
--- it under the terms of the GNU General Public License as published by
--- the Free Software Foundation, either version 3 of the License, or
--- (at your option) any later version.
---
--- This program is distributed in the hope that it will be useful,
--- but WITHOUT ANY WARRANTY; without even the implied warranty of
--- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
--- GNU General Public License for more details.
---
--- You should have received a copy of the GNU General Public License
--- along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-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);