From 391ea39fd4be572b10eedd2758e676f13324d0a8 Mon Sep 17 00:00:00 2001 From: MobiusDevelopment <8391001+MobiusDevelopment@users.noreply.github.com> Date: Tue, 19 Mar 2019 16:52:30 +0000 Subject: [PATCH] Changed clan_wars SQL table primary key. --- .../dist/db_installer/sql/game/clan_wars.sql | 3 +-- .../dist/db_installer/sql/game/clan_wars.sql | 3 +-- .../dist/db_installer/sql/game/clan_wars.sql | 3 +-- .../dist/db_installer/sql/game/clan_wars.sql | 3 +-- .../dist/db_installer/sql/game/clan_wars.sql | 3 +-- .../dist/db_installer/sql/game/clan_wars.sql | 3 +-- .../dist/db_installer/sql/game/clan_wars.sql | 3 +-- .../dist/db_installer/sql/game/clan_wars.sql | 7 ++----- .../dist/db_installer/sql/game/clan_wars.sql | 3 +-- .../dist/db_installer/sql/game/clan_wars.sql | 3 +-- .../dist/db_installer/sql/game/clan_wars.sql | 3 +-- .../dist/db_installer/sql/game/clan_wars.sql | 3 +-- .../dist/db_installer/sql/game/clan_wars.sql | 3 +-- 13 files changed, 14 insertions(+), 29 deletions(-) diff --git a/L2J_Mobius_1.0_Ertheia/dist/db_installer/sql/game/clan_wars.sql b/L2J_Mobius_1.0_Ertheia/dist/db_installer/sql/game/clan_wars.sql index dfa8dfa117..fc4b404fa0 100644 --- a/L2J_Mobius_1.0_Ertheia/dist/db_installer/sql/game/clan_wars.sql +++ b/L2J_Mobius_1.0_Ertheia/dist/db_installer/sql/game/clan_wars.sql @@ -8,6 +8,5 @@ CREATE TABLE IF NOT EXISTS `clan_wars` ( `startTime` bigint(13) NOT NULL DEFAULT 0, `endTime` bigint(13) NOT NULL DEFAULT 0, `state` tinyint(4) NOT NULL DEFAULT 0, - KEY `clan1` (`clan1`), - KEY `clan2` (`clan2`) + PRIMARY KEY (`clan1`,`clan2`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; \ No newline at end of file diff --git a/L2J_Mobius_2.5_Underground/dist/db_installer/sql/game/clan_wars.sql b/L2J_Mobius_2.5_Underground/dist/db_installer/sql/game/clan_wars.sql index dfa8dfa117..fc4b404fa0 100644 --- a/L2J_Mobius_2.5_Underground/dist/db_installer/sql/game/clan_wars.sql +++ b/L2J_Mobius_2.5_Underground/dist/db_installer/sql/game/clan_wars.sql @@ -8,6 +8,5 @@ CREATE TABLE IF NOT EXISTS `clan_wars` ( `startTime` bigint(13) NOT NULL DEFAULT 0, `endTime` bigint(13) NOT NULL DEFAULT 0, `state` tinyint(4) NOT NULL DEFAULT 0, - KEY `clan1` (`clan1`), - KEY `clan2` (`clan2`) + PRIMARY KEY (`clan1`,`clan2`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; \ No newline at end of file diff --git a/L2J_Mobius_3.0_Helios/dist/db_installer/sql/game/clan_wars.sql b/L2J_Mobius_3.0_Helios/dist/db_installer/sql/game/clan_wars.sql index dfa8dfa117..fc4b404fa0 100644 --- a/L2J_Mobius_3.0_Helios/dist/db_installer/sql/game/clan_wars.sql +++ b/L2J_Mobius_3.0_Helios/dist/db_installer/sql/game/clan_wars.sql @@ -8,6 +8,5 @@ CREATE TABLE IF NOT EXISTS `clan_wars` ( `startTime` bigint(13) NOT NULL DEFAULT 0, `endTime` bigint(13) NOT NULL DEFAULT 0, `state` tinyint(4) NOT NULL DEFAULT 0, - KEY `clan1` (`clan1`), - KEY `clan2` (`clan2`) + PRIMARY KEY (`clan1`,`clan2`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; \ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/db_installer/sql/game/clan_wars.sql b/L2J_Mobius_4.0_GrandCrusade/dist/db_installer/sql/game/clan_wars.sql index dfa8dfa117..fc4b404fa0 100644 --- a/L2J_Mobius_4.0_GrandCrusade/dist/db_installer/sql/game/clan_wars.sql +++ b/L2J_Mobius_4.0_GrandCrusade/dist/db_installer/sql/game/clan_wars.sql @@ -8,6 +8,5 @@ CREATE TABLE IF NOT EXISTS `clan_wars` ( `startTime` bigint(13) NOT NULL DEFAULT 0, `endTime` bigint(13) NOT NULL DEFAULT 0, `state` tinyint(4) NOT NULL DEFAULT 0, - KEY `clan1` (`clan1`), - KEY `clan2` (`clan2`) + PRIMARY KEY (`clan1`,`clan2`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; \ No newline at end of file diff --git a/L2J_Mobius_5.0_Salvation/dist/db_installer/sql/game/clan_wars.sql b/L2J_Mobius_5.0_Salvation/dist/db_installer/sql/game/clan_wars.sql index dfa8dfa117..fc4b404fa0 100644 --- a/L2J_Mobius_5.0_Salvation/dist/db_installer/sql/game/clan_wars.sql +++ b/L2J_Mobius_5.0_Salvation/dist/db_installer/sql/game/clan_wars.sql @@ -8,6 +8,5 @@ CREATE TABLE IF NOT EXISTS `clan_wars` ( `startTime` bigint(13) NOT NULL DEFAULT 0, `endTime` bigint(13) NOT NULL DEFAULT 0, `state` tinyint(4) NOT NULL DEFAULT 0, - KEY `clan1` (`clan1`), - KEY `clan2` (`clan2`) + PRIMARY KEY (`clan1`,`clan2`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; \ No newline at end of file diff --git a/L2J_Mobius_5.5_EtinasFate/dist/db_installer/sql/game/clan_wars.sql b/L2J_Mobius_5.5_EtinasFate/dist/db_installer/sql/game/clan_wars.sql index dfa8dfa117..fc4b404fa0 100644 --- a/L2J_Mobius_5.5_EtinasFate/dist/db_installer/sql/game/clan_wars.sql +++ b/L2J_Mobius_5.5_EtinasFate/dist/db_installer/sql/game/clan_wars.sql @@ -8,6 +8,5 @@ CREATE TABLE IF NOT EXISTS `clan_wars` ( `startTime` bigint(13) NOT NULL DEFAULT 0, `endTime` bigint(13) NOT NULL DEFAULT 0, `state` tinyint(4) NOT NULL DEFAULT 0, - KEY `clan1` (`clan1`), - KEY `clan2` (`clan2`) + PRIMARY KEY (`clan1`,`clan2`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; \ No newline at end of file diff --git a/L2J_Mobius_6.0_Fafurion/dist/db_installer/sql/game/clan_wars.sql b/L2J_Mobius_6.0_Fafurion/dist/db_installer/sql/game/clan_wars.sql index dfa8dfa117..fc4b404fa0 100644 --- a/L2J_Mobius_6.0_Fafurion/dist/db_installer/sql/game/clan_wars.sql +++ b/L2J_Mobius_6.0_Fafurion/dist/db_installer/sql/game/clan_wars.sql @@ -8,6 +8,5 @@ CREATE TABLE IF NOT EXISTS `clan_wars` ( `startTime` bigint(13) NOT NULL DEFAULT 0, `endTime` bigint(13) NOT NULL DEFAULT 0, `state` tinyint(4) NOT NULL DEFAULT 0, - KEY `clan1` (`clan1`), - KEY `clan2` (`clan2`) + PRIMARY KEY (`clan1`,`clan2`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/dist/db_installer/sql/game/clan_wars.sql b/L2J_Mobius_C6_Interlude/dist/db_installer/sql/game/clan_wars.sql index df96ec5700..de359d1c31 100644 --- a/L2J_Mobius_C6_Interlude/dist/db_installer/sql/game/clan_wars.sql +++ b/L2J_Mobius_C6_Interlude/dist/db_installer/sql/game/clan_wars.sql @@ -1,13 +1,10 @@ -- -- Table structure for `clan_wars` -- - CREATE TABLE IF NOT EXISTS `clan_wars` ( `clan1` varchar(35) NOT NULL default '', `clan2` varchar(35) NOT NULL default '', `wantspeace1` decimal(1,0) NOT NULL default '0', - `wantspeace2` decimal(1,0) NOT NULL default '0' + `wantspeace2` decimal(1,0) NOT NULL default '0', + PRIMARY KEY (`clan1`,`clan2`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; - - - diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/db_installer/sql/game/clan_wars.sql b/L2J_Mobius_CT_2.6_HighFive/dist/db_installer/sql/game/clan_wars.sql index 62cc814101..5f5c837584 100644 --- a/L2J_Mobius_CT_2.6_HighFive/dist/db_installer/sql/game/clan_wars.sql +++ b/L2J_Mobius_CT_2.6_HighFive/dist/db_installer/sql/game/clan_wars.sql @@ -3,6 +3,5 @@ CREATE TABLE IF NOT EXISTS `clan_wars` ( `clan2` varchar(35) NOT NULL DEFAULT '', `wantspeace1` decimal(1,0) NOT NULL DEFAULT '0', `wantspeace2` decimal(1,0) NOT NULL DEFAULT '0', - KEY `clan1` (`clan1`), - KEY `clan2` (`clan2`) + PRIMARY KEY (`clan1`,`clan2`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; \ No newline at end of file diff --git a/L2J_Mobius_Classic_2.0_Saviors/dist/db_installer/sql/game/clan_wars.sql b/L2J_Mobius_Classic_2.0_Saviors/dist/db_installer/sql/game/clan_wars.sql index dfa8dfa117..fc4b404fa0 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/dist/db_installer/sql/game/clan_wars.sql +++ b/L2J_Mobius_Classic_2.0_Saviors/dist/db_installer/sql/game/clan_wars.sql @@ -8,6 +8,5 @@ CREATE TABLE IF NOT EXISTS `clan_wars` ( `startTime` bigint(13) NOT NULL DEFAULT 0, `endTime` bigint(13) NOT NULL DEFAULT 0, `state` tinyint(4) NOT NULL DEFAULT 0, - KEY `clan1` (`clan1`), - KEY `clan2` (`clan2`) + PRIMARY KEY (`clan1`,`clan2`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; \ No newline at end of file diff --git a/L2J_Mobius_Classic_2.1_Zaken/dist/db_installer/sql/game/clan_wars.sql b/L2J_Mobius_Classic_2.1_Zaken/dist/db_installer/sql/game/clan_wars.sql index dfa8dfa117..fc4b404fa0 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/dist/db_installer/sql/game/clan_wars.sql +++ b/L2J_Mobius_Classic_2.1_Zaken/dist/db_installer/sql/game/clan_wars.sql @@ -8,6 +8,5 @@ CREATE TABLE IF NOT EXISTS `clan_wars` ( `startTime` bigint(13) NOT NULL DEFAULT 0, `endTime` bigint(13) NOT NULL DEFAULT 0, `state` tinyint(4) NOT NULL DEFAULT 0, - KEY `clan1` (`clan1`), - KEY `clan2` (`clan2`) + PRIMARY KEY (`clan1`,`clan2`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; \ No newline at end of file diff --git a/L2J_Mobius_Classic_2.2_Antharas/dist/db_installer/sql/game/clan_wars.sql b/L2J_Mobius_Classic_2.2_Antharas/dist/db_installer/sql/game/clan_wars.sql index dfa8dfa117..fc4b404fa0 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/dist/db_installer/sql/game/clan_wars.sql +++ b/L2J_Mobius_Classic_2.2_Antharas/dist/db_installer/sql/game/clan_wars.sql @@ -8,6 +8,5 @@ CREATE TABLE IF NOT EXISTS `clan_wars` ( `startTime` bigint(13) NOT NULL DEFAULT 0, `endTime` bigint(13) NOT NULL DEFAULT 0, `state` tinyint(4) NOT NULL DEFAULT 0, - KEY `clan1` (`clan1`), - KEY `clan2` (`clan2`) + PRIMARY KEY (`clan1`,`clan2`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; \ No newline at end of file diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/dist/db_installer/sql/game/clan_wars.sql b/L2J_Mobius_Classic_2.3_SevenSigns/dist/db_installer/sql/game/clan_wars.sql index dfa8dfa117..fc4b404fa0 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/dist/db_installer/sql/game/clan_wars.sql +++ b/L2J_Mobius_Classic_2.3_SevenSigns/dist/db_installer/sql/game/clan_wars.sql @@ -8,6 +8,5 @@ CREATE TABLE IF NOT EXISTS `clan_wars` ( `startTime` bigint(13) NOT NULL DEFAULT 0, `endTime` bigint(13) NOT NULL DEFAULT 0, `state` tinyint(4) NOT NULL DEFAULT 0, - KEY `clan1` (`clan1`), - KEY `clan2` (`clan2`) + PRIMARY KEY (`clan1`,`clan2`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; \ No newline at end of file