Line 0
Link Here
|
|
|
1 |
$DBversion = 'XXX'; # will be replaced by the RM |
2 |
if( CheckVersion( $DBversion ) ) { |
3 |
|
4 |
# Add authorised value category "CHECKOUT_TYPE" |
5 |
$dbh->do( q| |
6 |
INSERT IGNORE INTO authorised_value_categories( category_name ) VALUES ('CHECKOUT_TYPE'); |
7 |
| ); |
8 |
|
9 |
# Add authorised value "ONSITE" under "CHECKOUT_TYPE" category |
10 |
$dbh->do( q| |
11 |
INSERT IGNORE INTO authorised_values(category, authorised_value, lib, lib_opac) VALUES ('CHECKOUT_TYPE', 'ONSITE', 'On-site checkout', 'On-site checkout'); |
12 |
| ); |
13 |
|
14 |
# Always end with this (adjust the bug info) |
15 |
SetVersion( $DBversion ); |
16 |
print "Upgrade to $DBversion done (Bug 25037 - Add authorised value for checkout types )\n"; |
17 |
} |