diff options
author | Haruna <haru@dotalux.com> | 2014-04-19 22:37:54 +0200 |
---|---|---|
committer | Haruna <haru@dotalux.com> | 2014-04-19 22:37:54 +0200 |
commit | 93584f7416164985220293b7c08fcc29c4d5060f (patch) | |
tree | 2f2f533682e54dfe501ff4a470953e3a6bd2462f /sql-files | |
parent | cebfdc692ef4a5897c69304f88e585f8f1272c7e (diff) | |
parent | dd49dbc3e8d2033c0dddc80f1d5b3c8e6710a419 (diff) | |
download | hercules-93584f7416164985220293b7c08fcc29c4d5060f.tar.gz hercules-93584f7416164985220293b7c08fcc29c4d5060f.tar.bz2 hercules-93584f7416164985220293b7c08fcc29c4d5060f.tar.xz hercules-93584f7416164985220293b7c08fcc29c4d5060f.zip |
Merge pull request #272 from hemagx/master
Rewritten NSI_UNIQUE_ID system
Diffstat (limited to 'sql-files')
-rw-r--r-- | sql-files/main.sql | 3 | ||||
-rw-r--r-- | sql-files/upgrades/2014-04-07--22-04.sql | 3 | ||||
-rw-r--r-- | sql-files/upgrades/index.txt | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/sql-files/main.sql b/sql-files/main.sql index 49d35a287..e6e71c2c1 100644 --- a/sql-files/main.sql +++ b/sql-files/main.sql @@ -111,6 +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, PRIMARY KEY (`char_id`), UNIQUE KEY `name_key` (`name`), KEY `account_id` (`account_id`), @@ -709,8 +710,6 @@ CREATE TABLE IF NOT EXISTS `interreg` ( `value` varchar(20) NOT NULL, PRIMARY KEY (`varname`) ) ENGINE=InnoDB; -INSERT INTO `interreg` (`varname`, `value`) VALUES -('unique_id', '0'); -- -- Table structure for table `account_data` diff --git a/sql-files/upgrades/2014-04-07--22-04.sql b/sql-files/upgrades/2014-04-07--22-04.sql new file mode 100644 index 000000000..9e33d6aec --- /dev/null +++ b/sql-files/upgrades/2014-04-07--22-04.sql @@ -0,0 +1,3 @@ +#1396893866 +ALTER TABLE `char` ADD COLUMN `uniqueitem_counter` bigint(20) NOT NULL AFTER `unban_time`; +INSERT INTO `sql_updates` (`timestamp`) VALUES (1396893866); diff --git a/sql-files/upgrades/index.txt b/sql-files/upgrades/index.txt index 1c25d8210..7ac2f9ceb 100644 --- a/sql-files/upgrades/index.txt +++ b/sql-files/upgrades/index.txt @@ -19,4 +19,5 @@ 2014-01-04--16-47.sql 2014-01-06--17-22.sql 2014-02-19--17-57.sql -2014-03-25--23-57.sql
\ No newline at end of file +2014-03-25--23-57.sql +2014-04-07--22-04.sql
\ No newline at end of file |