Bug 23207: DBRev 20.12.00.035

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Jonathan Druart 2021-04-22 09:09:13 +00:00
parent 137b845f23
commit 2efad4356c
3 changed files with 13 additions and 13 deletions

View File

@ -29,7 +29,7 @@ use vars qw{ $VERSION };
# - #4 : the developer version. The 4th number is the database subversion.
# used by developers when the database changes. updatedatabase take care of the changes itself
# and is automatically called by Auth.pm when needed.
$VERSION = "20.12.00.034";
$VERSION = "20.12.00.035";
sub version {
return $VERSION;

View File

@ -1,12 +0,0 @@
$DBversion = 'XXX'; # will be replaced by the RM
if( CheckVersion( $DBversion ) ) {
if( !column_exists( 'itemtypes', 'automatic_checkin' ) ) {
$dbh->do(q{
ALTER TABLE itemtypes
ADD COLUMN `automatic_checkin` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'If automatic checkin is enabled for items of this type' AFTER `searchcategory`
});
}
# Always end with this (adjust the bug info)
NewVersion( $DBversion, 23027, "Add automatic_checkin to itemtypes table");
}

View File

@ -23862,6 +23862,18 @@ if( CheckVersion( $DBversion ) ) {
NewVersion( $DBversion, 20854, "Add new system preference casServerVersion");
}
$DBversion = '20.12.00.035';
if( CheckVersion( $DBversion ) ) {
if( !column_exists( 'itemtypes', 'automatic_checkin' ) ) {
$dbh->do(q{
ALTER TABLE itemtypes
ADD COLUMN `automatic_checkin` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'If automatic checkin is enabled for items of this type' AFTER `searchcategory`
});
}
NewVersion( $DBversion, 23207, "Add automatic_checkin to itemtypes table");
}
# SEE bug 13068
# if there is anything in the atomicupdate, read and execute it.
my $update_dir = C4::Context->config('intranetdir') . '/installer/data/mysql/atomicupdate/';