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:
Martin Renvoize 2019-03-15 13:43:03 +00:00 committed by Nick Clemens
parent e8eb0cf0f2
commit c42aa0a534

View 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";
}