diff options
author | zephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-09-01 00:03:10 +0000 |
---|---|---|
committer | zephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-09-01 00:03:10 +0000 |
commit | bb1a4e56b358c36a7996be8d34b84e7f118f63f5 (patch) | |
tree | 7e67cb25e378bfa10fad402e50b75b8ea991775d /sql-files/upgrade_svn13166_mercenary_owner.sql | |
parent | 08c870656aeb76d839a8ad2fd071818b8618f899 (diff) | |
download | hercules-bb1a4e56b358c36a7996be8d34b84e7f118f63f5.tar.gz hercules-bb1a4e56b358c36a7996be8d34b84e7f118f63f5.tar.bz2 hercules-bb1a4e56b358c36a7996be8d34b84e7f118f63f5.tar.xz hercules-bb1a4e56b358c36a7996be8d34b84e7f118f63f5.zip |
- Moved char server's mercenary code to a different file (int_mercenary.*)
- New Sql Patch for create mercenary_owner DB.
- Removed mer_id from char_db.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13166 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'sql-files/upgrade_svn13166_mercenary_owner.sql')
-rw-r--r-- | sql-files/upgrade_svn13166_mercenary_owner.sql | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/sql-files/upgrade_svn13166_mercenary_owner.sql b/sql-files/upgrade_svn13166_mercenary_owner.sql new file mode 100644 index 000000000..da7728cbe --- /dev/null +++ b/sql-files/upgrade_svn13166_mercenary_owner.sql @@ -0,0 +1,21 @@ +-- Removes mer_id from Char DB
+
+ALTER TABLE `char` DROP COLUMN `mer_id`;
+
+-- Clean mercenary DB
+
+TRUNCATE TABLE `mercenary`;
+
+-- Table structure for table `mercenary_owner`
+
+CREATE TABLE IF NOT EXISTS `mercenary_owner` (
+ `char_id` int(11) NOT NULL,
+ `merc_id` int(11) NOT NULL default '0',
+ `arch_calls` int(11) NOT NULL default '0',
+ `arch_faith` int(11) NOT NULL default '0',
+ `spear_calls` int(11) NOT NULL default '0',
+ `spear_faith` int(11) NOT NULL default '0',
+ `sword_calls` int(11) NOT NULL default '0',
+ `sword_faith` int(11) NOT NULL default '0',
+ PRIMARY KEY (`char_id`)
+) ENGINE=MyISAM;
|