From 12c5508d99575da085f7c789a8266e1731fe5dad Mon Sep 17 00:00:00 2001 From: Colin Campbell Date: Fri, 22 Jan 2010 16:04:47 +0000 Subject: [PATCH] Remove an invalid db update Update tries to drop two fk constraints which don't appear to exist --- installer/data/mysql/updatedatabase.pl | 8 -------- 1 file changed, 8 deletions(-) diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 6cba8d6c2e..ef12c2c0b7 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -2705,14 +2705,6 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) { SetVersion ($DBversion); } -$DBversion = '3.01.00.064'; -if (C4::Context->preference("Version") < TransformToNum($DBversion)) { - $dbh->do('ALTER TABLE issuingrules DROP FOREIGN KEY issuingrules_ibfk_1'); - $dbh->do('ALTER TABLE issuingrules DROP FOREIGN KEY issuingrules_ibfk_2'); - SetVersion ($DBversion); - print "Upgrade to $DBversion done (deleting contraints in issuingrules)\n"; -} - $DBversion = '3.01.00.065'; if (C4::Context->preference("Version") < TransformToNum($DBversion)) { $dbh->do('ALTER TABLE issuingrules ADD COLUMN `renewalsallowed` smallint(6) NOT NULL default "0" AFTER `issuelength`;'); -- 2.39.5