From dd49dbc3e8d2033c0dddc80f1d5b3c8e6710a419 Mon Sep 17 00:00:00 2001 From: Ibrahim Hossam Date: Tue, 8 Apr 2014 20:40:12 +0200 Subject: Rewritten NSI_UNIQUE_ID system to get rid of the cross-database interreg dependency - Removes the need for map-server to access the interreg table to store the last used ID. - Login, char and map databases can now be hosted separately. - Note: the unique_id structure has changed, and it now contains the generator character ID in its upper 32 bits. - Now NSI_UNIQUE_ID System is enabled always Special thanks to Haruna. --- sql-files/upgrades/2014-04-07--22-04.sql | 3 +++ sql-files/upgrades/index.txt | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 sql-files/upgrades/2014-04-07--22-04.sql (limited to 'sql-files/upgrades') 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 -- cgit v1.2.3-60-g2f50