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 642bb8dadaefbd9869dd329f374a82e4c4511626..99fdf4dabab24062b34fa081e9461e63d2d5e39a 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 28b9d66cb060be6ee8fafc345d2133c96a007905..0c3d871bcf17151315e4e01ac49b69d4ea180696 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