From 5d1712c1483dd106d067256db5728c41e0676177 Mon Sep 17 00:00:00 2001 From: markzd Date: Tue, 8 Jan 2013 05:31:06 +0000 Subject: * Renaming variable name from nsiuid to unique_id for better understanding of its meaning, as requested on tid:69380. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@17086 54d463be-8e91-2dee-dedb-b68131a5f0ec --- sql-files/logs.sql | 2 +- sql-files/main.sql | 14 +++++++------- sql-files/upgrades/upgrade_svn17086.sql | 11 +++++++++++ 3 files changed, 19 insertions(+), 8 deletions(-) create mode 100644 sql-files/upgrades/upgrade_svn17086.sql (limited to 'sql-files') diff --git a/sql-files/logs.sql b/sql-files/logs.sql index 90e8924ca..a281d632e 100644 --- a/sql-files/logs.sql +++ b/sql-files/logs.sql @@ -18,7 +18,7 @@ CREATE TABLE `picklog` ( `card1` int(11) NOT NULL default '0', `card2` int(11) NOT NULL default '0', `card3` int(11) NOT NULL default '0', - `nsiuid` bigint(20) unsigned NOT NULL default '0', + `unique_id` bigint(20) unsigned NOT NULL default '0', `map` varchar(11) NOT NULL default '', PRIMARY KEY (`id`), INDEX (`type`) diff --git a/sql-files/main.sql b/sql-files/main.sql index f2c574c79..f159260f1 100644 --- a/sql-files/main.sql +++ b/sql-files/main.sql @@ -21,7 +21,7 @@ CREATE TABLE IF NOT EXISTS `auction` ( `card1` smallint(11) NOT NULL default '0', `card2` smallint(11) NOT NULL default '0', `card3` smallint(11) NOT NULL default '0', - `nsiuid` bigint(20) unsigned NOT NULL default '0', + `unique_id` bigint(20) unsigned NOT NULL default '0', PRIMARY KEY (`auction_id`) ) ENGINE=MyISAM; @@ -43,7 +43,7 @@ CREATE TABLE IF NOT EXISTS `cart_inventory` ( `card2` smallint(11) NOT NULL default '0', `card3` smallint(11) NOT NULL default '0', `expire_time` int(11) unsigned NOT NULL default '0', - `nsiuid` bigint(20) unsigned NOT NULL default '0', + `unique_id` bigint(20) unsigned NOT NULL default '0', PRIMARY KEY (`id`), KEY `char_id` (`char_id`) ) ENGINE=MyISAM; @@ -343,7 +343,7 @@ CREATE TABLE IF NOT EXISTS `guild_storage` ( `card2` smallint(11) NOT NULL default '0', `card3` smallint(11) NOT NULL default '0', `expire_time` int(11) unsigned NOT NULL default '0', - `nsiuid` bigint(20) unsigned NOT NULL default '0', + `unique_id` bigint(20) unsigned NOT NULL default '0', PRIMARY KEY (`id`), KEY `guild_id` (`guild_id`) ) ENGINE=MyISAM; @@ -407,7 +407,7 @@ CREATE TABLE IF NOT EXISTS `inventory` ( `card3` smallint(11) NOT NULL default '0', `expire_time` int(11) unsigned NOT NULL default '0', `favorite` tinyint(3) unsigned NOT NULL default '0', - `nsiuid` bigint(20) unsigned NOT NULL default '0', + `unique_id` bigint(20) unsigned NOT NULL default '0', PRIMARY KEY (`id`), KEY `char_id` (`char_id`) ) ENGINE=MyISAM; @@ -504,7 +504,7 @@ CREATE TABLE IF NOT EXISTS `mail` ( `card1` smallint(11) NOT NULL default '0', `card2` smallint(11) NOT NULL default '0', `card3` smallint(11) NOT NULL default '0', - `nsiuid` bigint(20) unsigned NOT NULL default '0', + `unique_id` bigint(20) unsigned NOT NULL default '0', PRIMARY KEY (`id`) ) ENGINE=MyISAM; @@ -666,7 +666,7 @@ CREATE TABLE IF NOT EXISTS `storage` ( `card2` smallint(11) NOT NULL default '0', `card3` smallint(11) NOT NULL default '0', `expire_time` int(11) unsigned NOT NULL default '0', - `nsiuid` bigint(20) unsigned NOT NULL default '0', + `unique_id` bigint(20) unsigned NOT NULL default '0', PRIMARY KEY (`id`), KEY `account_id` (`account_id`) ) ENGINE=MyISAM; @@ -677,4 +677,4 @@ CREATE TABLE IF NOT EXISTS `interreg` ( PRIMARY KEY (`varname`) ) ENGINE=InnoDB; INSERT INTO `interreg` (`varname`, `value`) VALUES -('nsiuid', '0'); +('unique_id', '0'); diff --git a/sql-files/upgrades/upgrade_svn17086.sql b/sql-files/upgrades/upgrade_svn17086.sql new file mode 100644 index 000000000..b61511b98 --- /dev/null +++ b/sql-files/upgrades/upgrade_svn17086.sql @@ -0,0 +1,11 @@ +UPDATE `interreg` SET `varname` = 'unique_id' WHERE `interreg`.`varname` = 'nsiuid'; + + +ALTER TABLE `auction` CHANGE `nsiuid` `unique_id` BIGINT( 20 ) NOT NULL DEFAULT '0'; +ALTER TABLE `cart_inventory` CHANGE `nsiuid` `unique_id` BIGINT( 20 ) NOT NULL DEFAULT '0'; +ALTER TABLE `guild_storage` CHANGE `nsiuid` `unique_id` BIGINT( 20 ) NOT NULL DEFAULT '0'; +ALTER TABLE `inventory` CHANGE `nsiuid` `unique_id` BIGINT( 20 ) NOT NULL DEFAULT '0'; +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 `picklog` CHANGE `nsiuid` `unique_id` BIGINT( 20 ) NOT NULL DEFAULT '0'; \ No newline at end of file -- cgit v1.2.3-60-g2f50