From 3987d23cbcab27116d81b6096e7f13f687e75f73 Mon Sep 17 00:00:00 2001 From: Kyle Hall Date: Fri, 8 Oct 2021 09:47:57 -0400 Subject: [PATCH] Bug 29137: DBRev 21.05.04.003 Signed-off-by: Kyle M Hall --- Koha.pm | 2 +- installer/data/mysql/atomicupdate/bug_29137.pl | 15 --------------- installer/data/mysql/updatedatabase.pl | 9 +++++++++ 3 files changed, 10 insertions(+), 16 deletions(-) delete mode 100755 installer/data/mysql/atomicupdate/bug_29137.pl diff --git a/Koha.pm b/Koha.pm index 526b1949bf..9b1b855134 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 = "21.05.04.001"; +$VERSION = "21.05.04.003"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_29137.pl b/installer/data/mysql/atomicupdate/bug_29137.pl deleted file mode 100755 index f56e5fdc8e..0000000000 --- a/installer/data/mysql/atomicupdate/bug_29137.pl +++ /dev/null @@ -1,15 +0,0 @@ -use Modern::Perl; - -return { - bug_number => "29137", - description => "Add system preference CreateAVFromCataloguing", - up => sub { - my ($args) = @_; - my ($dbh, $out) = @$args{qw(dbh out)}; - - $dbh->do( q{ - INSERT IGNORE INTO systempreferences (variable, value, options, explanation, type) - VALUES ('CreateAVFromCataloguing', '1', '', 'Ability to create authorized values from the cataloguing module', 'YesNo') - }); - }, -} diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 587c0820ef..c21cf53ffd 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -24506,6 +24506,15 @@ if( CheckVersion( $DBversion ) ) { NewVersion( $DBversion, 28826, "Add system preference FacetOrder"); } +$DBversion = '21.05.04.003'; +if( CheckVersion( $DBversion ) ) { + $dbh->do( q{ + INSERT IGNORE INTO systempreferences (variable, value, options, explanation, type) + VALUES ('CreateAVFromCataloguing', '1', '', 'Ability to create authorized values from the cataloguing module', 'YesNo') + }); + NewVersion( $DBversion, 29137, "Add system preference CreateAVFromCataloguing"); +} + # 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