1 $DBversion = 'XXX'; # will be replaced by the RM
2 if( CheckVersion( $DBversion ) ) {
3 unless ( column_exists( 'reserves', 'item_level_hold' ) ) {
4 $dbh->do( "ALTER TABLE reserves ADD COLUMN item_level_hold BOOLEAN NOT NULL DEFAULT 0 AFTER itemtype" );
6 unless ( column_exists( 'old_reserves', 'item_level_hold' ) ) {
7 $dbh->do( "ALTER TABLE old_reserves ADD COLUMN item_level_hold BOOLEAN NOT NULL DEFAULT 0 AFTER itemtype" );
10 SetVersion( $DBversion );
11 print "Upgrade to $DBversion done (Bug 9834 - Add the reserves.item_level_hold column)\n";