From eb76026a684ec4ce2cc5840b0e4cb1b69a62026e Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 19 Aug 2013 15:05:49 +0200 Subject: [PATCH] Bug 10550: Merge 2 updatedatabase entries into 1 Signed-off-by: Jonathan Druart Signed-off-by: Galen Charlton --- installer/data/mysql/updatedatabase.pl | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 19fe04cb65..1aad8393a7 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -7081,13 +7081,10 @@ if ( CheckVersion($DBversion) ) { UPDATE saved_sql SET savedsql = REPLACE(savedsql, 'wthdrawn', 'withdrawn') }); - print "Upgrade to $DBversion done (Bug 10550 - Fix database typo wthdrawn)\n"; - SetVersion($DBversion); -} + $dbh->do(q{ + UPDATE marc_subfield_structure SET kohafield = 'items.withdrawn' WHERE kohafield = 'items.wthdrawn' + }); -$DBversion = "3.13.00.XXX"; -if ( CheckVersion($DBversion) ) { - $dbh->do("UPDATE marc_subfield_structure SET kohafield = 'items.withdrawn' WHERE kohafield = 'items.wthdrawn'"); print "Upgrade to $DBversion done (Bug 10550 - Fix database typo wthdrawn)\n"; SetVersion($DBversion); } -- 2.39.5