Bug 23228: (QA follow-up) Fix the DB update
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
parent
1bc1642b94
commit
e6b768bea4
1 changed files with 15 additions and 7 deletions
|
@ -1,10 +1,18 @@
|
||||||
$DBversion = 'XXX'; # will be replaced by the RM
|
$DBversion = 'XXX'; # will be replaced by the RM
|
||||||
if( CheckVersion( $DBversion ) ) {
|
if ( CheckVersion($DBversion) ) {
|
||||||
$dbh->do({
|
$dbh->do(q{
|
||||||
INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
|
INSERT IGNORE INTO systempreferences (variable, value, options, explanation, type)
|
||||||
('FinePaymentAutoPopup','0',NULL,'If enabled, automatically display a print dialog for a payment receipt when making a payment.','YesNo')
|
VALUES
|
||||||
|
(
|
||||||
|
'FinePaymentAutoPopup',
|
||||||
|
'0',
|
||||||
|
NULL,
|
||||||
|
'If enabled, automatically display a print dialog for a payment receipt when making a payment.',
|
||||||
|
'YesNo'
|
||||||
|
)
|
||||||
});
|
});
|
||||||
|
|
||||||
SetVersion( $DBversion );
|
SetVersion($DBversion);
|
||||||
print "Upgrade to $DBversion done (Bug 23228 - Add option to automatically display payment receipt for printing after making a payment)\n";
|
print
|
||||||
|
"Upgrade to $DBversion done (Bug 23228 - Add option to automatically display payment receipt for printing after making a payment)\n";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue