aboutsummaryrefslogtreecommitdiff
path: root/sql/updates
diff options
context:
space:
mode:
authorTreeston <treeston.mmoc@gmail.com>2018-09-17 11:18:06 +0200
committerShauren <shauren.trinity@gmail.com>2021-11-08 23:18:32 +0100
commit5ed891a0f0c65cf4c844ccb209952352f4241193 (patch)
tree481f4ef950d4d71ba3fdeff78f919ed0e74203a8 /sql/updates
parent4c2313a44b0c77828d1d1ce66ac9679f446b5277 (diff)
Scripts/Commands: Add .debug dummy. It does nothing, which means you can make it do anything.
(cherry picked from commit 97ade1321b6d18393202a1448f2b042fc1ff0546)
Diffstat (limited to 'sql/updates')
-rw-r--r--sql/updates/auth/master/2018_09_17_00_auth.sql6
-rw-r--r--sql/updates/world/master/2021_11_08_00_world_2018_09_17_00_world.sql6
2 files changed, 12 insertions, 0 deletions
diff --git a/sql/updates/auth/master/2018_09_17_00_auth.sql b/sql/updates/auth/master/2018_09_17_00_auth.sql
new file mode 100644
index 00000000000..7aa76283e57
--- /dev/null
+++ b/sql/updates/auth/master/2018_09_17_00_auth.sql
@@ -0,0 +1,6 @@
+--
+DELETE FROM `rbac_permissions` WHERE `id`=852;
+INSERT INTO `rbac_permissions` (`id`,`name`) VALUES (852, 'Command: debug dummy');
+
+DELETE FROM `rbac_linked_permissions` WHERE `linkedId`=852;
+INSERT INTO `rbac_linked_permissions` (`id`,`linkedId`) VALUES (196,852);
diff --git a/sql/updates/world/master/2021_11_08_00_world_2018_09_17_00_world.sql b/sql/updates/world/master/2021_11_08_00_world_2018_09_17_00_world.sql
new file mode 100644
index 00000000000..d8602da97ae
--- /dev/null
+++ b/sql/updates/world/master/2021_11_08_00_world_2018_09_17_00_world.sql
@@ -0,0 +1,6 @@
+--
+DELETE FROM `command` WHERE `name`='debug dummy';
+INSERT INTO `command` (`name`,`permission`,`help`) VALUES
+('debug dummy',852,'Syntax: .debug dummy <???>
+
+Catch-all debug command. Does nothing by default. If you want it to do things for testing, add the things to its script in cs_debug.cpp.');