From 17c44ac5ca732aa8c913164987478065533c87d3 Mon Sep 17 00:00:00 2001 From: Aleisha Amohia Date: Tue, 20 Oct 2020 14:36:25 +1300 Subject: [PATCH] Bug 18958: DBRev 19.11.10.001 Signed-off-by: Aleisha Amohia --- Koha.pm | 2 +- ...bug_18958_add_reserve_id_to_hold_fill_targets.perl | 10 ---------- installer/data/mysql/updatedatabase.pl | 11 +++++++++++ 3 files changed, 12 insertions(+), 11 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 d59fd1f9cf..4427776cde 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 = "19.11.10.000"; +$VERSION = "19.11.10.001"; 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 5e0ff9c10c..0000000000 --- a/installer/data/mysql/atomicupdate/bug_18958_add_reserve_id_to_hold_fill_targets.perl +++ /dev/null @@ -1,10 +0,0 @@ -$DBversion = "XXX"; -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" ); - } - - print "Upgrade to $DBversion done (Bug 18958 - Add reserve_id to hold_fill_targets)\n"; - SetVersion( $DBversion ); -} diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index c0c7335867..3b0f61c648 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -20686,6 +20686,17 @@ if ( CheckVersion( $DBversion ) ) { SetVersion( $DBversion ); } +$DBversion = "19.11.10.001"; +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" ); + } + + print "Upgrade to $DBversion done (Bug 18958 - Add reserve_id to hold_fill_targets)\n"; + SetVersion( $DBversion ); +} + # 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