From 6bbed80c790344eb6f033402fae23ccdd352afcf Mon Sep 17 00:00:00 2001 From: Mason James Date: Thu, 27 Sep 2007 22:28:34 -0500 Subject: [PATCH] adding debuglevel syspref too, v3.00.00.004 Signed-off-by: Chris Cormack --- updater/updatedatabase | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/updater/updatedatabase b/updater/updatedatabase index eab08cfdad..77f9dbe5d5 100755 --- a/updater/updatedatabase +++ b/updater/updatedatabase @@ -2183,9 +2183,6 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) { SetVersion ($DBversion); } -=item - Deal with the sessions table that uses CGI::Session -=cut $DBversion = "3.00.00.002"; if (C4::Context->preference("Version") < TransformToNum($DBversion)) { @@ -2199,9 +2196,6 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) { SetVersion ($DBversion); } -=item - Deal with the sessions table that uses CGI::Session -=cut $DBversion = "3.00.00.003"; if (C4::Context->preference("Version") < TransformToNum($DBversion)) { @@ -2214,6 +2208,17 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) { SetVersion ($DBversion); } + +$DBversion = "3.00.00.004"; +if (C4::Context->preference("Version") < TransformToNum($DBversion)) { + $dbh->do("INSERT INTO `systempreferences` VALUES ('DebugLevel','2','set the level of error info sent to the browser. 0=none, 1=some, 2=most','0|1|2','Choice')"); + } + print "Upgrade to $DBversion done (adding DebugLevel systempref, in 'Admin' tab)\n"; + SetVersion ($DBversion); +} + + + =item DropAllForeignKeys($table) Drop all foreign keys of the table $table -- 2.39.5