Bug 7310 follow-up : typo fix lt instead of < in DB version comparison
authorPaul Poulain <paul.poulain@biblibre.com>
Thu, 22 Mar 2012 15:55:56 +0000 (16:55 +0100)
committerPaul Poulain <paul.poulain@biblibre.com>
Thu, 22 Mar 2012 15:55:56 +0000 (16:55 +0100)
installer/data/mysql/updatedatabase.pl

index ec08012..246ecf7 100755 (executable)
@@ -4968,7 +4968,7 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
 }
 
 $DBversion = "3.07.00.032";
-if ( C4::Context->preference("Version") lt TransformToNum($DBversion) ) {
+if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
     $dbh->do("ALTER TABLE virtualshelves MODIFY COLUMN owner int"); #should have been int already (fk to borrowers)
     $dbh->do("UPDATE virtualshelves vi LEFT JOIN borrowers bo ON bo.borrowernumber=vi.owner SET vi.owner=NULL where bo.borrowernumber IS NULL"); #before adding the constraint on borrowernumber, we need to get rid of deleted owners
     $dbh->do("DELETE FROM virtualshelves WHERE owner IS NULL and category=1"); #delete private lists without owner (cascades to shelfcontents)