From 7e9a282e43fc9dea04d64ed908387aa6970f4002 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Fri, 16 Oct 2020 16:52:04 +0000 Subject: [PATCH] Bug 18958: DBRev 20.05.04.002 Signed-off-by: Lucas Gass --- Koha.pm | 2 +- .../bug_18958_add_reserve_id_to_hold_fill_targets.perl | 9 --------- installer/data/mysql/updatedatabase.pl | 10 ++++++++++ 3 files changed, 11 insertions(+), 10 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_18958_add_reserve_id_to_hold_fill_targets.perl diff --git a/Koha.pm b/Koha.pm index 2954a1d07a..4cd4b68938 100644 --- a/Koha.pm +++ b/Koha.pm @@ -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.05.04.001"; +$VERSION = "20.05.04.002"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_18958_add_reserve_id_to_hold_fill_targets.perl b/installer/data/mysql/atomicupdate/bug_18958_add_reserve_id_to_hold_fill_targets.perl deleted file mode 100644 index 4849771c51..0000000000 --- a/installer/data/mysql/atomicupdate/bug_18958_add_reserve_id_to_hold_fill_targets.perl +++ /dev/null @@ -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"); -} diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 9f249dc6a1..c8ae4b3f3d 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -22409,6 +22409,16 @@ if( CheckVersion( $DBversion ) ) { NewVersion( $DBversion, 24807, "Add 'year' type to improve sorting behaviour" ); } +$DBversion = '20.05.04.002'; +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/'; -- 2.39.5