From: James, Mason <[email protected]> Clears kohafield for 952f (items.coded_location_qualifier).
Signed-off-by: Marcel de Rooy <[email protected]> Corrected a typo that made the SQL statement fail (missing single quote before fieldname). Tested it on 3.05.00.007. Will work. I already had this connection for 952f removed long ago. If it still would have been there, it will be gone now! --- installer/data/mysql/updatedatabase.pl | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 2076edf..7f0223f 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -4391,6 +4391,13 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) { SetVersion($DBversion); } +$DBversion = "3.05.00.xxx"; +if (C4::Context->preference("Version") < TransformToNum($DBversion)) { + $dbh->do("UPDATE marc_subfield_structure SET kohafield = NULL WHERE tagfield = 952 AND tagsubfield = 'f' AND kohafield = 'items.coded_location_qualifier'"); + print "Upgrade to $DBversion done (remove non-existant 'items.coded_location_qualifier' column)\n"; + SetVersion($DBversion); +} + =head1 FUNCTIONS =head2 DropAllForeignKeys($table) -- 1.6.0.6 _______________________________________________ Koha-patches mailing list [email protected] http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-patches website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
