Bug 7310 follow-up : typo fix lt instead of < in DB version comparison

This commit is contained in:
Paul Poulain 2012-03-22 16:55:56 +01:00
parent 4eeb14c52b
commit b6751749a6
1 changed files with 1 additions and 1 deletions

View File

@ -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)