From 24987d8513307094064f59d3c9f9c35d0f6a6e87 Mon Sep 17 00:00:00 2001
From: markzd <markzd@54d463be-8e91-2dee-dedb-b68131a5f0ec>
Date: Mon, 7 Jan 2013 05:13:54 +0000
Subject: * Implemented Unique identifier for Non stackable items. (tid:69380)
 * Set as off by default, it can be changed in /src/config/core.h.

git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@17080 54d463be-8e91-2dee-dedb-b68131a5f0ec
---
 sql-files/upgrades/upgrade_svn17080.sql | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 sql-files/upgrades/upgrade_svn17080.sql

(limited to 'sql-files/upgrades/upgrade_svn17080.sql')

diff --git a/sql-files/upgrades/upgrade_svn17080.sql b/sql-files/upgrades/upgrade_svn17080.sql
new file mode 100644
index 000000000..a94b8b668
--- /dev/null
+++ b/sql-files/upgrades/upgrade_svn17080.sql
@@ -0,0 +1,16 @@
+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';
+
+ALTER TABLE `picklog` ADD `nsiuid` BIGINT NOT NULL DEFAULT '0' AFTER `card3`;
-- 
cgit v1.2.3-70-g09d2

