From cdc2da1847476873717f12b2f82403c1d3ad24f0 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Tue, 15 Sep 2009 22:16:01 -0400 Subject: [PATCH] avoid error message since messages table does not exist yet Signed-off-by: Galen Charlton --- installer/data/mysql/updatedatabase.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index cc72e8fd26..9987b16ac4 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -2654,7 +2654,7 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) { $DBversion = '3.01.00.060'; if (C4::Context->preference("Version") < TransformToNum($DBversion)) { $dbh->do("INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('AllowAllMessageDeletion','0','Allow any Library to delete any message','','YesNo');"); - $dbh->do('DROP TABLE messages'); + $dbh->do('DROP TABLE IF EXISTS messages'); $dbh->do("CREATE TABLE messages ( `message_id` int(11) NOT NULL auto_increment, `borrowernumber` int(11) NOT NULL, `branchcode` varchar(4) default NULL, -- 2.39.5