Bug 13958: DBRev 19.05.05.001

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Lucas Gass 2019-12-10 23:05:53 +00:00
parent ee600debe4
commit 9649de151e
2 changed files with 19 additions and 18 deletions

View File

@ -1,18 +0,0 @@
$DBversion = 'XXX';
if( CheckVersion( $DBversion ) ) {
$dbh->do(q{
INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type)
SELECT
'SuspensionsCalendar',
IF( value='noFinesWhenClosed', 'noSuspensionsWhenClosed', 'ignoreCalendar'),
'ignoreCalendar|noSuspensionsWhenClosed',
'Specify whether to use the Calendar in calculating suspensions',
'Choice'
FROM systempreferences
WHERE variable='finesCalendar';
});
SetVersion( $DBversion );
print "Upgrade to $DBversion done (Bug 13958 - Add a SuspensionsCalendar syspref)\n";
}

View File

@ -18846,6 +18846,25 @@ if( CheckVersion( $DBversion ) ) {
print "Upgrade to $DBversion done (19.05.05 release)\n";
}
$DBversion = '19.05.05.001';
if( CheckVersion( $DBversion ) ) {
$dbh->do(q{
INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type)
SELECT
'SuspensionsCalendar',
IF( value='noFinesWhenClosed', 'noSuspensionsWhenClosed', 'ignoreCalendar'),
'ignoreCalendar|noSuspensionsWhenClosed',
'Specify whether to use the Calendar in calculating suspensions',
'Choice'
FROM systempreferences
WHERE variable='finesCalendar';
});
SetVersion( $DBversion );
print "Upgrade to $DBversion done (Bug 13958 - Add a SuspensionsCalendar syspref)\n";
}
# SEE bug 13068
# if there is anything in the atomicupdate, read and execute it.