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 "OS" under "CHECKOUT_TYPE" category |
10 |
$dbh->do( q| |
11 |
INSERT IGNORE INTO authorised_values(category, authorised_value, lib, lib_opac) VALUES ('CHECKOUT_TYPE', 'OS', 'On-site checkout', 'On-site checkout'); |
12 |
| ); |
13 |
# Add authorised value "C" under "CHECKOUT_TYPE" category |
14 |
$dbh->do( q| |
15 |
INSERT IGNORE INTO authorised_values(category, authorised_value, lib, lib_opac) VALUES ('CHECKOUT_TYPE', 'C', 'Normal checkout', 'Normal checkout'); |
16 |
| ); |
17 |
|
18 |
# Always end with this (adjust the bug info) |
19 |
SetVersion( $DBversion ); |
20 |
print "Upgrade to $DBversion done (Bug 25037 - Add authorised value for checkout types )\n"; |
21 |
} |