From 67fade84d313285ae6b219fddddb4868a7de203a Mon Sep 17 00:00:00 2001 From: click Date: Fri, 19 Nov 2010 13:13:07 +0100 Subject: Core/Commands: Enable SQL query logging by config and command )patch by leak) Closes issue 4853. --HG-- branch : trunk --- sql/updates/10470_world_command.sql | 3 +++ sql/updates/10470_world_trinity_string.sql | 4 ++++ 2 files changed, 7 insertions(+) create mode 100644 sql/updates/10470_world_command.sql create mode 100644 sql/updates/10470_world_trinity_string.sql (limited to 'sql/updates') diff --git a/sql/updates/10470_world_command.sql b/sql/updates/10470_world_command.sql new file mode 100644 index 00000000000..56f665e9104 --- /dev/null +++ b/sql/updates/10470_world_command.sql @@ -0,0 +1,3 @@ +DELETE FROM `command` WHERE `name` LIKE 'server togglequerylog'; +INSERT INTO `command` (`name`,`security`,`help`) VALUES +('server togglequerylog',4,'Toggle SQL driver query logging.'); diff --git a/sql/updates/10470_world_trinity_string.sql b/sql/updates/10470_world_trinity_string.sql new file mode 100644 index 00000000000..03b507de7a4 --- /dev/null +++ b/sql/updates/10470_world_trinity_string.sql @@ -0,0 +1,4 @@ +DELETE FROM `trinity_string` WHERE `entry` IN (1027, 1028); +INSERT INTO `trinity_string` (`entry`, `content_default`) VALUES +(1027, 'SQL driver query logging enabled.'), +(1028, 'SQL driver query logging disabled.'); \ No newline at end of file -- cgit v1.2.3