浏览代码

BETA: Missing "IF NOT EXISTS" in dynamic SCH tables, thanks Raikkon35.

MELERIX 13 年之前
父节点
当前提交
32c28da5e8

+ 1 - 1
L2J_DataPack_BETA/dist/sql/game/bandit_stronghold_attackers.sql

@@ -1,4 +1,4 @@
-CREATE TABLE `bandit_stronghold_attackers` (
+CREATE TABLE IF NOT EXISTS `bandit_stronghold_attackers` (
 `flag` int(10) UNSIGNED NOT NULL DEFAULT '0',
 `npc` int(10) UNSIGNED NOT NULL DEFAULT '0',
 `clan_id` int(10) UNSIGNED NOT NULL DEFAULT '0',

+ 1 - 1
L2J_DataPack_BETA/dist/sql/game/bandit_stronghold_attackers_members.sql

@@ -1,4 +1,4 @@
-CREATE TABLE `bandit_stronghold_attackers_members` (
+CREATE TABLE IF NOT EXISTS `bandit_stronghold_attackers_members` (
 `clan_id` int(10) UNSIGNED NOT NULL DEFAULT '0',
 `object_id` int(10) UNSIGNED NOT NULL DEFAULT '0'
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;

+ 1 - 1
L2J_DataPack_BETA/dist/sql/game/clanhall_siege_attackers.sql

@@ -1,4 +1,4 @@
-CREATE TABLE `clanhall_siege_attackers` (
+CREATE TABLE IF NOT EXISTS `clanhall_siege_attackers` (
   `clanhall_id` int(3) NOT NULL DEFAULT '0',
   `attacker_id` int(10) NOT NULL DEFAULT '0'
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;

+ 1 - 1
L2J_DataPack_BETA/dist/sql/game/rainbowsprings_attacker_list.sql

@@ -1,4 +1,4 @@
-CREATE TABLE `rainbowsprings_attacker_list` (
+CREATE TABLE IF NOT EXISTS `rainbowsprings_attacker_list` (
   `clanId` int(10) DEFAULT NULL,
   `war_decrees_count` double(20,0) DEFAULT NULL
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;

+ 1 - 1
L2J_DataPack_BETA/dist/sql/game/siegable_halls.sql

@@ -6,7 +6,7 @@
 -- mm = Minutes of the day when siege must start
 -- Example for a siege each 7 days which starts at 12 o clock: 7;0;0;12;00
 
-CREATE TABLE `siegable_clanhall` (
+CREATE TABLE IF NOT EXISTS `siegable_clanhall` (
   `clanHallId` int(10) NOT NULL DEFAULT '0',
   `name` varchar(45) DEFAULT NULL,
   `ownerId` int(10) DEFAULT NULL,