DBRev up for Bug 16200 - 'Hold waiting too long' fee has a translation

problem

Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>
This commit is contained in:
Brendan Gallagher 2016-05-31 08:56:42 +00:00
parent 09de19c427
commit bae0eb9ab7
3 changed files with 10 additions and 2 deletions

View file

@ -29,7 +29,7 @@ use vars qw{ $VERSION };
# - #4 : the developer version. The 4th number is the database subversion. # - #4 : the developer version. The 4th number is the database subversion.
# used by developers when the database changes. updatedatabase take care of the changes itself # used by developers when the database changes. updatedatabase take care of the changes itself
# and is automatically called by Auth.pm when needed. # and is automatically called by Auth.pm when needed.
$VERSION = "16.06.00.000"; $VERSION = "16.06.00.001";
sub version { sub version {
return $VERSION; return $VERSION;

View file

@ -1 +0,0 @@
UPDATE accountlines SET accounttype='HE', description=itemnumber WHERE (description REGEXP '^Hold waiting too long [0-9]+') AND accounttype='F';

View file

@ -12605,6 +12605,15 @@ if ( CheckVersion($DBversion) ) {
SetVersion($DBversion); SetVersion($DBversion);
} }
$DBversion = "16.06.00.001";
if ( CheckVersion($DBversion) ) {
$dbh->do(q{
UPDATE accountlines SET accounttype='HE', description=itemnumber WHERE (description REGEXP '^Hold waiting too long [0-9]+') AND accounttype='F';
});
print "Upgrade to $DBversion done (Bug 16200 - 'Hold waiting too long' fee has a translation problem)\n";
SetVersion($DBversion);
}
# DEVELOPER PROCESS, search for anything to execute in the db_update directory # DEVELOPER PROCESS, search for anything to execute in the db_update directory
# SEE bug 13068 # SEE bug 13068