Bug 7310 follow-up : typo fix lt instead of < in DB version comparison
This commit is contained in:
parent
4eeb14c52b
commit
b6751749a6
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue