bug 7310 follow-up DBVersion was wrong
Thanks Ian for pointing that the DBVersion defined for 7310 was wrong : I missed it had a 99 that should have been a 00
This commit is contained in:
parent
58e3065af4
commit
b86b5a2979
1 changed files with 1 additions and 1 deletions
|
@ -4967,7 +4967,7 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
|
|||
SetVersion ($DBversion);
|
||||
}
|
||||
|
||||
$DBversion = "3.07.99.032";
|
||||
$DBversion = "3.07.00.032";
|
||||
if ( C4::Context->preference("Version") lt 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
|
||||
|
|
Loading…
Reference in a new issue