Lines 1-14
Link Here
|
1 |
$DBversion = 'XXX'; # will be replaced by the RM |
1 |
$DBversion = 'XXX'; # will be replaced by the RM |
2 |
if( CheckVersion( $DBversion ) ) { |
2 |
if( CheckVersion( $DBversion ) ) { |
3 |
# you can use $dbh here like: |
3 |
$dbh->do(q{ |
4 |
# $dbh->do("INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES ('PayPalReturnURL','BaseURL','BaseURL|OPACAlias','Specify whether PayPal will return to the url specified in the OPACBaseURL option or to the OPAC\'s alias url.','Choice')" ); |
4 |
INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) |
|
|
5 |
VALUES ('PayPalReturnURL','BaseURL','BaseURL|OPACAlias','Specify whether PayPal will return to the url specified in the OPACBaseURL option or to the OPAC\'s alias url.','Choice') |
6 |
}); |
5 |
|
7 |
|
6 |
# or perform some test and warn |
|
|
7 |
# if( !column_exists( 'biblio', 'biblionumber' ) ) { |
8 |
# warn "There is something wrong"; |
9 |
# } |
10 |
|
11 |
# Always end with this (adjust the bug info) |
12 |
SetVersion( $DBversion ); |
8 |
SetVersion( $DBversion ); |
13 |
print "Upgrade to $DBversion done (Bug 21701 - PayPal return URL option)\n"; |
9 |
print "Upgrade to $DBversion done (Bug 21701 - PayPal return URL option)\n"; |
14 |
} |
10 |
} |
15 |
- |
|
|