summaryrefslogtreecommitdiff
path: root/sql-files
diff options
context:
space:
mode:
authorbrianluau <brianluau@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-03-24 22:51:05 +0000
committerbrianluau <brianluau@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-03-24 22:51:05 +0000
commite3858c34c1a4ee83ad40c00c14ac34958f386c89 (patch)
tree7f54a3211df33a88a002f080976b01ef235e48c0 /sql-files
parent2e12c0db360b75de92c0adeffc21f0120d0aeaa5 (diff)
downloadhercules-e3858c34c1a4ee83ad40c00c14ac34958f386c89.tar.gz
hercules-e3858c34c1a4ee83ad40c00c14ac34958f386c89.tar.bz2
hercules-e3858c34c1a4ee83ad40c00c14ac34958f386c89.tar.xz
hercules-e3858c34c1a4ee83ad40c00c14ac34958f386c89.zip
- Removed extra <TAB> 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
Diffstat (limited to 'sql-files')
-rw-r--r--sql-files/main.sql8
-rw-r--r--sql-files/upgrade_svn14759.sql4
2 files changed, 8 insertions, 4 deletions
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';