Bug 16200: Update DB rev (3.22.07.001)

This commit is contained in:
Brendan Gallagher 2016-05-31 08:56:42 +00:00 committed by Julian Maurice
parent 36303e71f6
commit d4bf05b054
3 changed files with 13 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.
# used by developers when the database changes. updatedatabase take care of the changes itself
# and is automatically called by Auth.pm when needed.
$VERSION = "3.22.07.000";
$VERSION = "3.22.07.001";
sub 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

@ -11631,6 +11631,18 @@ if ( CheckVersion($DBversion) ) {
SetVersion($DBversion);
}
$DBversion = "3.22.07.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
# SEE bug 13068