|
Lines 1-15
Link Here
|
| 1 |
$DBversion = 'XXX'; # will be replaced by the RM |
|
|
| 2 |
if( CheckVersion( $DBversion ) ) { |
| 3 |
# you can use $dbh here like: |
| 4 |
# $dbh->do( "ALTER TABLE biblio ADD COLUMN badtaste int" ); |
| 5 |
|
| 6 |
# or perform some test and warn |
| 7 |
if( !column_exists( 'categories', 'article_request_limit' ) ) { |
| 8 |
$dbh->do(q{ |
| 9 |
ALTER TABLE `categories` ADD COLUMN `article_request_limit` tinyint(4) DEFAULT NULL COMMENT 'Limit article scan requests per day' AFTER `article_request_fee` |
| 10 |
}); |
| 11 |
} |
| 12 |
|
| 13 |
# Always end with this (adjust the bug info) |
| 14 |
NewVersion( $DBversion, 27945, "Add article_request_limit to categories table"); |
| 15 |
} |