rathena/sql-files/upgrades/upgrade_svn17080.sql
brianluau 2c8fd60503 - Renamed some /sql-files/upgrades/upgrade_svn***** files to match previous naming conventions.
Upgrade files ending in "_log" should be applied to the log database.
Upgrade files with no suffix are applied to the ragnarok database.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@17102 54d463be-8e91-2dee-dedb-b68131a5f0ec
2013-01-18 20:32:00 +00:00

15 lines
614 B
SQL

CREATE TABLE IF NOT EXISTS `interreg` (
`varname` varchar(11) NOT NULL,
`value` varchar(20) NOT NULL,
PRIMARY KEY (`varname`)
) ENGINE=InnoDB;
INSERT INTO `interreg` (`varname`, `value`) VALUES
('nsiuid', '0');
ALTER TABLE `auction` ADD `nsiuid` BIGINT NOT NULL DEFAULT '0';
ALTER TABLE `cart_inventory` ADD `nsiuid` BIGINT NOT NULL DEFAULT '0';
ALTER TABLE `guild_storage` ADD `nsiuid` BIGINT NOT NULL DEFAULT '0';
ALTER TABLE `inventory` ADD `nsiuid` BIGINT NOT NULL DEFAULT '0';
ALTER TABLE `mail` ADD `nsiuid` BIGINT NOT NULL DEFAULT '0';
ALTER TABLE `storage` ADD `nsiuid` BIGINT NOT NULL DEFAULT '0';