Bug 18958: DBRev 20.06.00.039

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Jonathan Druart 2020-09-18 09:46:10 +00:00
parent b255ca7c6e
commit e7d1ffbad3
3 changed files with 11 additions and 10 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.06.00.038";
$VERSION = "20.06.00.039";
sub version {
return $VERSION;

View File

@ -1,9 +0,0 @@
$DBversion = 'XXX'; # will be replaced by the RM
if( CheckVersion( $DBversion ) ) {
if( !column_exists( 'hold_fill_targets', 'reserve_id' ) ) {
$dbh->do( "ALTER TABLE hold_fill_targets ADD COLUMN reserve_id int(11) DEFAULT NULL AFTER item_level_request" );
}
NewVersion( $DBversion, 18958, "Add reserve_id to hold_fill_targets");
}

View File

@ -22797,6 +22797,16 @@ if( CheckVersion( $DBversion ) ) {
NewVersion( $DBversion, 24807, "Add 'year' type to improve sorting behaviour" );
}
$DBversion = '20.06.00.039';
if( CheckVersion( $DBversion ) ) {
if( !column_exists( 'hold_fill_targets', 'reserve_id' ) ) {
$dbh->do( "ALTER TABLE hold_fill_targets ADD COLUMN reserve_id int(11) DEFAULT NULL AFTER item_level_request" );
}
NewVersion( $DBversion, 18958, "Add reserve_id to hold_fill_targets");
}
# 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/';