Bug 21915: DBRev 18.12.00.006

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
Nick Clemens 2019-01-04 02:51:03 +00:00
parent 3853014017
commit 10f78fcb2e
3 changed files with 11 additions and 10 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.12.00.005";
$VERSION = "18.12.00.006";
sub version {
return $VERSION;

View file

@ -1,9 +0,0 @@
$DBversion = 'XXX';
if( CheckVersion( $DBversion ) ) {
$dbh->do(q{
INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES
('AccountAutoReconcile','0','If enabled, patron balances will get reconciled automatically on each transaction.',NULL,'YesNo');
});
SetVersion($DBversion);
print "Upgrade to $DBversion done (Bug 21915 - Add a way to automatically reconcile balance for patrons)\n";
}

View file

@ -17225,6 +17225,16 @@ if( CheckVersion( $DBversion ) ) {
print "Upgrade to $DBversion done (Bug 22030: Add OverDriveUsername syspref)\n";
}
$DBversion = '18.12.00.006';
if( CheckVersion( $DBversion ) ) {
$dbh->do(q{
INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES
('AccountAutoReconcile','0','If enabled, patron balances will get reconciled automatically on each transaction.',NULL,'YesNo');
});
SetVersion($DBversion);
print "Upgrade to $DBversion done (Bug 21915 - Add a way to automatically reconcile balance for patrons)\n";
}
# SEE bug 13068
# if there is anything in the atomicupdate, read and execute it.