Bug 22518: Add database update 'just in case'
All cases I could find where 'O' was referenced it was referenced alongside 'FU'.. as such I've written this DB update to case any last cases of 'O' and update them to 'FU' "just in case" Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
parent
e8eb0cf0f2
commit
c42aa0a534
1 changed files with 16 additions and 0 deletions
16
installer/data/mysql/atomicupdate/bug_22518.perl
Normal file
16
installer/data/mysql/atomicupdate/bug_22518.perl
Normal file
|
@ -0,0 +1,16 @@
|
|||
$DBversion = 'XXX'; # will be replaced by the RM
|
||||
if ( CheckVersion($DBversion) ) {
|
||||
|
||||
$dbh->do(
|
||||
qq{
|
||||
UPDATE `accountlines`
|
||||
SET
|
||||
`accounttype` = 'FU'
|
||||
WHERE
|
||||
`accounttype` = 'O'
|
||||
}
|
||||
);
|
||||
|
||||
SetVersion($DBversion);
|
||||
print "Upgrade to $DBversion done (Bug 22518 - Fix accounttype 'O' to 'FU')\n";
|
||||
}
|
Loading…
Reference in a new issue