From e3858c34c1a4ee83ad40c00c14ac34958f386c89 Mon Sep 17 00:00:00 2001 From: brianluau Date: Thu, 24 Mar 2011 22:51:05 +0000 Subject: - Removed extra from const.txt - Changed the card columns in `cart_inventory` table to SMALLINT(11), to match other tables. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14759 54d463be-8e91-2dee-dedb-b68131a5f0ec --- sql-files/main.sql | 8 ++++---- sql-files/upgrade_svn14759.sql | 4 ++++ 2 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 sql-files/upgrade_svn14759.sql (limited to 'sql-files') diff --git a/sql-files/main.sql b/sql-files/main.sql index dae3300e4..239f8dac3 100644 --- a/sql-files/main.sql +++ b/sql-files/main.sql @@ -37,10 +37,10 @@ CREATE TABLE IF NOT EXISTS `cart_inventory` ( `identify` smallint(6) NOT NULL default '0', `refine` tinyint(3) unsigned NOT NULL default '0', `attribute` tinyint(4) NOT NULL default '0', - `card0` int(11) NOT NULL default '0', - `card1` int(11) NOT NULL default '0', - `card2` int(11) NOT NULL default '0', - `card3` int(11) NOT NULL default '0', + `card0` smallint(11) NOT NULL default '0', + `card1` smallint(11) NOT NULL default '0', + `card2` smallint(11) NOT NULL default '0', + `card3` smallint(11) NOT NULL default '0', `expire_time` int(11) unsigned NOT NULL default '0', PRIMARY KEY (`id`), KEY `char_id` (`char_id`) diff --git a/sql-files/upgrade_svn14759.sql b/sql-files/upgrade_svn14759.sql new file mode 100644 index 000000000..58d4bea17 --- /dev/null +++ b/sql-files/upgrade_svn14759.sql @@ -0,0 +1,4 @@ +ALTER TABLE `cart_inventory` MODIFY COLUMN `card0` SMALLINT(11) NOT NULL DEFAULT '0'; +ALTER TABLE `cart_inventory` MODIFY COLUMN `card1` SMALLINT(11) NOT NULL DEFAULT '0'; +ALTER TABLE `cart_inventory` MODIFY COLUMN `card2` SMALLINT(11) NOT NULL DEFAULT '0'; +ALTER TABLE `cart_inventory` MODIFY COLUMN `card3` SMALLINT(11) NOT NULL DEFAULT '0'; -- cgit v1.2.3-70-g09d2