|
Line 0
Link Here
|
| 0 |
- |
1 |
$DBversion = 'XXX'; # will be replaced by the RM |
|
|
2 |
if( CheckVersion( $DBversion ) ) { |
| 3 |
# you can use $dbh here like: |
| 4 |
$dbh->do( q{ |
| 5 |
INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES |
| 6 |
('ArticleRequestsDisclaimerText', '', NULL,'Enter text to enable the disclaimer stage of article request creation. Text will be displayed','Textarea') |
| 7 |
} ); |
| 8 |
|
| 9 |
# or perform some test and warn |
| 10 |
# if( !column_exists( 'biblio', 'biblionumber' ) ) { |
| 11 |
# warn "There is something wrong"; |
| 12 |
# } |
| 13 |
|
| 14 |
# Always end with this (adjust the bug info) |
| 15 |
NewVersion( $DBversion, 27948, "Add ArticleRequestsDisclaimerText system preference"); |
| 16 |
} |