Bug 13958: DBRev 19.05.05.001
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
ee600debe4
commit
9649de151e
|
|
@ -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";
|
||||
}
|
||||
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue