From 688248cb862839767114ac1059af402ecad5f9cb Mon Sep 17 00:00:00 2001
From: MELERIX <MELERIX@users.noreply.github.com>
Date: Thu, 9 Feb 2012 07:50:13 +0000
Subject: [PATCH] BETA: Two more Indexes for [8337].

---
 .../dist/sql/game/mods/mods_wedding.sql        | 18 ++++++++++--------
 .../dist/sql/game/updates/20110906update.sql   |  5 ++++-
 2 files changed, 14 insertions(+), 9 deletions(-)

diff --git a/L2J_DataPack_BETA/dist/sql/game/mods/mods_wedding.sql b/L2J_DataPack_BETA/dist/sql/game/mods/mods_wedding.sql
index 642bb8dada..99fdf4daba 100644
--- a/L2J_DataPack_BETA/dist/sql/game/mods/mods_wedding.sql
+++ b/L2J_DataPack_BETA/dist/sql/game/mods/mods_wedding.sql
@@ -1,9 +1,11 @@
-CREATE TABLE IF NOT EXISTS `mods_wedding` (
-  `id` int(11) NOT NULL auto_increment,
-  `player1Id` int(11) NOT NULL default '0',
-  `player2Id` int(11) NOT NULL default '0',
-  `married` varchar(5) default NULL,
-  `affianceDate` decimal(20,0) default '0',
-  `weddingDate` decimal(20,0) default '0',
-  PRIMARY KEY  (`id`)
+CREATE TABLE `mods_wedding` (
+  `id` int(11) NOT NULL AUTO_INCREMENT,
+  `player1Id` int(11) NOT NULL DEFAULT '0',
+  `player2Id` int(11) NOT NULL DEFAULT '0',
+  `married` varchar(5) DEFAULT NULL,
+  `affianceDate` decimal(20,0) DEFAULT '0',
+  `weddingDate` decimal(20,0) DEFAULT '0',
+  PRIMARY KEY (`id`),
+  KEY `player1Id` (`player1Id`),
+  KEY `player2Id` (`player2Id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
diff --git a/L2J_DataPack_BETA/dist/sql/game/updates/20110906update.sql b/L2J_DataPack_BETA/dist/sql/game/updates/20110906update.sql
index 28b9d66cb0..0c3d871bcf 100644
--- a/L2J_DataPack_BETA/dist/sql/game/updates/20110906update.sql
+++ b/L2J_DataPack_BETA/dist/sql/game/updates/20110906update.sql
@@ -16,4 +16,7 @@ ALTER TABLE `items` DROP KEY `key_time_of_use`;
 ALTER TABLE `items` ADD KEY `owner_id` (`owner_id`);
 ALTER TABLE `items` ADD KEY `item_id` (`item_id`);
 ALTER TABLE `items` ADD KEY `loc` (`loc`);
-ALTER TABLE `items` ADD KEY `time_of_use` (`time_of_use`);
\ No newline at end of file
+ALTER TABLE `items` ADD KEY `time_of_use` (`time_of_use`);
+
+ALTER TABLE `mods_wedding` ADD KEY `player1Id` (`player1Id`);
+ALTER TABLE `mods_wedding` ADD KEY `player2Id` (`player2Id`);
\ No newline at end of file
-- 
GitLab