diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-07-08 02:59:20 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-07-08 03:12:49 +0300 |
commit | 6a84cbb2d527a0fb263a9104690bcfcb24f182e1 (patch) | |
tree | 38e440734065a76cdf36dc74b1011687cd5d8927 /sql-files/upgrades/eAthena-main-upgrade.sql | |
parent | 45b2d8b7858c22e80457ebc4e3732e104b48bcb1 (diff) | |
download | hercules-6a84cbb2d527a0fb263a9104690bcfcb24f182e1.tar.gz hercules-6a84cbb2d527a0fb263a9104690bcfcb24f182e1.tar.bz2 hercules-6a84cbb2d527a0fb263a9104690bcfcb24f182e1.tar.xz hercules-6a84cbb2d527a0fb263a9104690bcfcb24f182e1.zip |
Add sql upgrade scripts for convert date/datetime default values.
Diffstat (limited to 'sql-files/upgrades/eAthena-main-upgrade.sql')
-rw-r--r-- | sql-files/upgrades/eAthena-main-upgrade.sql | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sql-files/upgrades/eAthena-main-upgrade.sql b/sql-files/upgrades/eAthena-main-upgrade.sql index 64b22bfe9..647c9e004 100644 --- a/sql-files/upgrades/eAthena-main-upgrade.sql +++ b/sql-files/upgrades/eAthena-main-upgrade.sql @@ -111,3 +111,17 @@ ALTER TABLE `inventory` CHANGE `nsiuid` `unique_id` BIGINT( 20 ) NOT NULL DEFAUL ALTER TABLE `mail` CHANGE `nsiuid` `unique_id` BIGINT( 20 ) NOT NULL DEFAULT '0'; ALTER TABLE `storage` CHANGE `nsiuid` `unique_id` BIGINT( 20 ) NOT NULL DEFAULT '0'; + +ALTER TABLE `charlog` MODIFY `time` DATETIME NULL; +ALTER TABLE `interlog` MODIFY `time` DATETIME NULL; +ALTER TABLE `ipbanlist` MODIFY `btime` DATETIME NULL; +ALTER TABLE `ipbanlist` MODIFY `rtime` DATETIME NULL; +ALTER TABLE `login` MODIFY `lastlogin` DATETIME NULL; +ALTER TABLE `login` MODIFY `birthdate` DATE NULL; + +UPDATE `charlog` SET `time` = NULL WHERE `time` = '0000-00-00 00:00:00'; +UPDATE `interlog` SET `time` = NULL WHERE `time` = '0000-00-00 00:00:00'; +UPDATE `ipbanlist` SET `btime` = NULL WHERE `btime` = '0000-00-00 00:00:00'; +UPDATE `ipbanlist` SET `rtime` = NULL WHERE `rtime` = '0000-00-00 00:00:00'; +UPDATE `login` SET `lastlogin` = NULL WHERE `lastlogin` = '0000-00-00 00:00:00'; +UPDATE `login` SET `birthdate` = NULL WHERE `birthdate` = '0000-00-00'; |