Bug 20487: (QA follow-up) Requested db revision
As requested in comment12, we can update these cases in a dbrev too. Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Checked out item, deleted issue record, ran dbrev. Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
parent
a744a3e202
commit
74cc24d227
1 changed files with 12 additions and 0 deletions
12
installer/data/mysql/atomicupdate/bug_20487.perl
Normal file
12
installer/data/mysql/atomicupdate/bug_20487.perl
Normal file
|
@ -0,0 +1,12 @@
|
|||
$DBversion = 'XXX'; # will be replaced by the RM
|
||||
if( CheckVersion( $DBversion ) ) {
|
||||
$dbh->do( q|
|
||||
UPDATE items LEFT JOIN issues USING (itemnumber)
|
||||
SET items.onloan = NULL
|
||||
WHERE issues.itemnumber IS NULL
|
||||
|);
|
||||
|
||||
# Always end with this (adjust the bug info)
|
||||
SetVersion( $DBversion );
|
||||
print "Upgrade to $DBversion done (Bug 20487: Clear items.onloan for unissued items)\n";
|
||||
}
|
Loading…
Reference in a new issue