aboutsummaryrefslogtreecommitdiff
path: root/sql/updates
diff options
context:
space:
mode:
authorSeyden <saiifii@live.de>2021-10-22 12:51:45 +0200
committerNaios <naios-dev@live.de>2021-10-22 12:52:37 +0200
commit8f097e4425d182c03b26d847c0537207d9f3cd2e (patch)
treed9d6233d0cd2d75978a97ab8b3c73429886322a4 /sql/updates
parent972105183a16c9ac8c43f379cce4acc8bf764cd8 (diff)
Core/Scripts: Implement script name reloading
* Authored by Seyden * Co-authored by Naios * We thank Shauren for your helpful feedback
Diffstat (limited to 'sql/updates')
-rw-r--r--sql/updates/auth/master/2021_10_22_00_auth.sql7
-rw-r--r--sql/updates/world/master/2021_10_21_05_world.sql3
2 files changed, 10 insertions, 0 deletions
diff --git a/sql/updates/auth/master/2021_10_22_00_auth.sql b/sql/updates/auth/master/2021_10_22_00_auth.sql
new file mode 100644
index 00000000000..1bd7830845f
--- /dev/null
+++ b/sql/updates/auth/master/2021_10_22_00_auth.sql
@@ -0,0 +1,7 @@
+DELETE FROM `rbac_permissions` WHERE `id` = 882;
+INSERT INTO `rbac_permissions` (`id`, `name`) VALUES
+(882, 'Command: reload spell_script_names');
+
+DELETE FROM `rbac_linked_permissions` WHERE `linkedId` = 882;
+INSERT INTO `rbac_linked_permissions` (`id`, `linkedId`) VALUES
+(196, 882);
diff --git a/sql/updates/world/master/2021_10_21_05_world.sql b/sql/updates/world/master/2021_10_21_05_world.sql
new file mode 100644
index 00000000000..ed62f4a765d
--- /dev/null
+++ b/sql/updates/world/master/2021_10_21_05_world.sql
@@ -0,0 +1,3 @@
+DELETE FROM `command` WHERE `permission` = 882;
+INSERT INTO `command` (`name`,`permission`,`help`) VALUES
+('reload spell_script_names', 882, 'Syntax: .reload spell_script_names\nReload spell_script_names table.');