summaryrefslogtreecommitdiff
path: root/sql-files
diff options
context:
space:
mode:
authorMrKeiKun <the.keikun@gmail.com>2014-04-26 15:36:30 +0800
committerShido <the.keikun@gmail.com>2014-04-26 19:37:55 +0800
commit47fae87d899c486223c0a5dd58caf76efc56ffb4 (patch)
tree8c4798f38dabf0ae4a7642cdf4fbc7f2b8da67dd /sql-files
parent2f1d13680ef04aa255ce2881fa7e89f42a76e7ab (diff)
downloadhercules-47fae87d899c486223c0a5dd58caf76efc56ffb4.tar.gz
hercules-47fae87d899c486223c0a5dd58caf76efc56ffb4.tar.bz2
hercules-47fae87d899c486223c0a5dd58caf76efc56ffb4.tar.xz
hercules-47fae87d899c486223c0a5dd58caf76efc56ffb4.zip
Follow-up to 93584f7, Fixed issue with Character Creation, column doesn't contain default value.
Signed-off-by: MrKeiKun <the.keikun@gmail.com>
Diffstat (limited to 'sql-files')
-rw-r--r--sql-files/main.sql3
-rw-r--r--sql-files/upgrades/2014-04-26--10-00.sql3
-rw-r--r--sql-files/upgrades/index.txt3
3 files changed, 7 insertions, 2 deletions
diff --git a/sql-files/main.sql b/sql-files/main.sql
index b7cf01937..25045226a 100644
--- a/sql-files/main.sql
+++ b/sql-files/main.sql
@@ -111,7 +111,7 @@ CREATE TABLE IF NOT EXISTS `char` (
`char_opt` INT( 11 ) unsigned NOT NULL default '0',
`font` TINYINT( 3 ) UNSIGNED NOT NULL DEFAULT '0',
`unban_time` int(11) unsigned NOT NULL default '0',
- `uniqueitem_counter` bigint(20) NOT NULL,
+ `uniqueitem_counter` bigint(20) unsigned NOT NULL default '0',
PRIMARY KEY (`char_id`),
UNIQUE KEY `name_key` (`name`),
KEY `account_id` (`account_id`),
@@ -667,6 +667,7 @@ INSERT INTO `sql_updates` (`timestamp`) VALUES (1389028967); -- 2014-01-06--17-2
INSERT INTO `sql_updates` (`timestamp`) VALUES (1392832626); -- 2014-02-19--17-57.sql
INSERT INTO `sql_updates` (`timestamp`) VALUES (1395789302); -- 2014-03-25--23-57.sql
INSERT INTO `sql_updates` (`timestamp`) VALUES (1396893866); -- 2014-04-07--22-04.sql
+INSERT INTO `sql_updates` (`timestamp`) VALUES (1398477600); -- 2014-04-26--10-00.sql
--
-- Table structure for table `sstatus`
diff --git a/sql-files/upgrades/2014-04-26--10-00.sql b/sql-files/upgrades/2014-04-26--10-00.sql
new file mode 100644
index 000000000..de3fbd4c8
--- /dev/null
+++ b/sql-files/upgrades/2014-04-26--10-00.sql
@@ -0,0 +1,3 @@
+#1398477600
+ALTER TABLE `char` CHANGE COLUMN `uniqueitem_counter` `uniqueitem_counter` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0' ;
+INSERT INTO `sql_updates` (`timestamp`) VALUES (1398477600);
diff --git a/sql-files/upgrades/index.txt b/sql-files/upgrades/index.txt
index 7ac2f9ceb..88019e12a 100644
--- a/sql-files/upgrades/index.txt
+++ b/sql-files/upgrades/index.txt
@@ -20,4 +20,5 @@
2014-01-06--17-22.sql
2014-02-19--17-57.sql
2014-03-25--23-57.sql
-2014-04-07--22-04.sql \ No newline at end of file
+2014-04-07--22-04.sql
+2014-04-26--10-00.sql \ No newline at end of file