5e7a57894c166b82b150484fef6c2e5825dfaf2e
[srvgit] / installer / data / mysql / atomicupdate / bug_23027.perl
1 $DBversion = 'XXX'; # will be replaced by the RM
2 if( CheckVersion( $DBversion ) ) {
3     if( !column_exists( 'itemtypes', 'automatic_checkin' ) ) {
4        $dbh->do(q{
5            ALTER TABLE itemtypes ADD COLUMN `automatic_checkin` tinyint(1) NOT NULL DEFAULT 0 AFTER `searchcategory` -- 1 if automatic checkin is enabled for items of this type
6        });
7     }
8
9     # Always end with this (adjust the bug info)
10     NewVersion( $DBversion, 23027, "Add automatic_checkin to itemtypes table");
11 }