From 028c70dc8f44ebe08fb7ba35b8e3c84b41d7b59a 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 --- 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 19fe04c..1aad839 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); } -- 1.7.10.4