From 0a70c31f609c0cf99c88c88a751ae4aa88f8bbd1 Mon Sep 17 00:00:00 2001 From: Joshua Ferraro Date: Mon, 4 Aug 2008 08:32:55 -0500 Subject: [PATCH] Putting the db revision from 105 into 106 as it wasn't applied in 105 --- installer/data/mysql/updatedatabase.pl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 6f875e4233..c2008786c7 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -1924,6 +1924,13 @@ END_SQL $DBversion = "3.00.00.106"; if (C4::Context->preference("Version") < TransformToNum($DBversion)) { $dbh->do("DELETE FROM systempreferences WHERE variable='noOPACHolds'"); + +# db revision 105 didn't apply correctly, so we're rolling this into 106 + $dbh->do("INSERT INTO `systempreferences` + (variable,value,explanation,options,type) + VALUES + ('SMSSendDriver','','Sets which SMS::Send driver is used to send SMS messages.','','free')"); + print "Upgrade to $DBversion done (remove default '0000-00-00' in subscriptionhistory.enddate field)\n"; $dbh->do("ALTER TABLE `subscriptionhistory` CHANGE `enddate` `enddate` DATE NULL DEFAULT NULL "); $dbh->do("UPDATE subscriptionhistory SET enddate=NULL WHERE enddate='0000-00-00'");