Bug 18736: DBRev 18.11.03.004

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit bc36d8e06b)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Nick Clemens 2019-03-21 18:11:29 +00:00 committed by Martin Renvoize
parent f27aba73f6
commit 5115ee767d
No known key found for this signature in database
GPG Key ID: 422B469130441A0F
3 changed files with 9 additions and 8 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 = "18.11.03.003";
$VERSION = "18.11.03.004";
sub version {
return $VERSION;

View File

@ -1,7 +0,0 @@
$DBversion = 'XXX'; # will be replaced by the RM
if( CheckVersion( $DBversion ) ) {
$dbh->do( "INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES ('OrderPriceRounding',NULL,'Local preference for rounding orders before calculations to ensure correct calculations','|nearest_cent','Choice')" );
SetVersion( $DBversion );
print "Upgrade to $DBversion done (Bug 18736 - Add syspref to control order rounding)\n";
}

View File

@ -17336,6 +17336,14 @@ if( CheckVersion( $DBversion ) ) {
print "WARNING: (Bug 21846) You need to manually run $maintenance_script to fix possible issues with tags.\n";
}
$DBversion = '18.11.03.004';
if( CheckVersion( $DBversion ) ) {
$dbh->do( "INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES ('OrderPriceRounding',NULL,'Local preference for rounding orders before calculations to ensure correct calculations','|nearest_cent','Choice')" );
SetVersion( $DBversion );
print "Upgrade to $DBversion done (Bug 18736 - Add syspref to control order rounding)\n";
}
# SEE bug 13068
# if there is anything in the atomicupdate, read and execute it.