aboutsummaryrefslogtreecommitdiff
path: root/sql/updates
diff options
context:
space:
mode:
Diffstat (limited to 'sql/updates')
-rw-r--r--sql/updates/auth/master/2017_01_29_00_auth.sql9
-rw-r--r--sql/updates/world/master/2017_01_29_00_world.sql62
2 files changed, 71 insertions, 0 deletions
diff --git a/sql/updates/auth/master/2017_01_29_00_auth.sql b/sql/updates/auth/master/2017_01_29_00_auth.sql
new file mode 100644
index 00000000000..53397d5d880
--- /dev/null
+++ b/sql/updates/auth/master/2017_01_29_00_auth.sql
@@ -0,0 +1,9 @@
+SET @PERMISSION := 851;
+
+DELETE FROM `rbac_permissions` WHERE `id` = @PERMISSION;
+INSERT INTO `rbac_permissions` (`id`, `name`) VALUES
+(@PERMISSION, 'Command: reload areatrigger_templates' );
+
+DELETE FROM `rbac_linked_permissions` WHERE `id` = 192 AND `linkedId` = @PERMISSION;
+INSERT INTO `rbac_linked_permissions` (`id`, `linkedId`) VALUES
+(192, @PERMISSION);
diff --git a/sql/updates/world/master/2017_01_29_00_world.sql b/sql/updates/world/master/2017_01_29_00_world.sql
new file mode 100644
index 00000000000..6d99c38435f
--- /dev/null
+++ b/sql/updates/world/master/2017_01_29_00_world.sql
@@ -0,0 +1,62 @@
+DROP TABLE IF EXISTS `areatrigger_template`;
+CREATE TABLE `areatrigger_template` (
+ `Id` int(10) unsigned NOT NULL,
+ `Type` tinyint(3) unsigned NOT NULL DEFAULT '0',
+ `Flags` int(10) unsigned NOT NULL DEFAULT '0',
+ `Data0` float NOT NULL DEFAULT '0',
+ `Data1` float NOT NULL DEFAULT '0',
+ `Data2` float NOT NULL DEFAULT '0',
+ `Data3` float NOT NULL DEFAULT '0',
+ `Data4` float NOT NULL DEFAULT '0',
+ `Data5` float NOT NULL DEFAULT '0',
+ `ScriptName` char(64) NOT NULL DEFAULT '',
+ `VerifiedBuild` int(10) unsigned NOT NULL DEFAULT '0',
+ PRIMARY KEY (`Id`)
+) ENGINE=MyISAM DEFAULT CHARSET=utf8;
+
+DROP TABLE IF EXISTS `areatrigger_template_polygon_vertices`;
+CREATE TABLE `areatrigger_template_polygon_vertices` (
+ `AreaTriggerId` int(10) unsigned NOT NULL,
+ `Idx` int(10) unsigned NOT NULL,
+ `VerticeX` float NOT NULL DEFAULT '0',
+ `VerticeY` float NOT NULL DEFAULT '0',
+ `VerticeTargetX` float NULL,
+ `VerticeTargetY` float NULL,
+ `VerifiedBuild` int(10) unsigned NOT NULL DEFAULT '0',
+ PRIMARY KEY (`AreaTriggerId`,`Idx`)
+) ENGINE=MyISAM DEFAULT CHARSET=utf8;
+
+DROP TABLE IF EXISTS `areatrigger_template_actions`;
+CREATE TABLE `areatrigger_template_actions` (
+ `AreaTriggerId` int(10) unsigned NOT NULL,
+ `ActionType` int(10) unsigned NOT NULL,
+ `ActionParam` int(10) unsigned NOT NULL,
+ `TargetType` int(10) unsigned NOT NULL DEFAULT '0',
+ PRIMARY KEY (`AreaTriggerId`, `ActionType`, `ActionParam`)
+) ENGINE=MyISAM DEFAULT CHARSET=utf8;
+
+DROP TABLE IF EXISTS `spell_areatrigger`;
+CREATE TABLE `spell_areatrigger` (
+ `SpellMiscId` int(10) unsigned NOT NULL,
+ `AreaTriggerId` int(10) unsigned NOT NULL,
+ `MoveCurveId` int(10) unsigned NOT NULL DEFAULT '0',
+ `ScaleCurveId` int(10) unsigned NOT NULL DEFAULT '0',
+ `MorphCurveId` int(10) unsigned NOT NULL DEFAULT '0',
+ `FacingCurveId` int(10) unsigned NOT NULL DEFAULT '0',
+ `DecalPropertiesId` int(10) unsigned NOT NULL DEFAULT '0',
+ `TimeToTarget` int(10) unsigned NOT NULL DEFAULT '0',
+ `TimeToTargetScale` int(10) unsigned NOT NULL DEFAULT '0',
+ `VerifiedBuild` int(10) unsigned NOT NULL DEFAULT '0',
+ PRIMARY KEY (`SpellMiscId`)
+) ENGINE=MyISAM DEFAULT CHARSET=utf8;
+
+DROP TABLE IF EXISTS `spell_areatrigger_splines`;
+CREATE TABLE `spell_areatrigger_splines` (
+ `SpellMiscId` int(10) unsigned NOT NULL,
+ `Idx` int(10) unsigned NOT NULL,
+ `X` float NOT NULL DEFAULT '0',
+ `Y` float NOT NULL DEFAULT '0',
+ `Z` float NOT NULL DEFAULT '0',
+ `VerifiedBuild` int(10) unsigned NOT NULL DEFAULT '0',
+ PRIMARY KEY (`SpellMiscId`,`Idx`)
+) ENGINE=MyISAM DEFAULT CHARSET=utf8;