From dbf315fc3dc652c29587501788905df630feb984 Mon Sep 17 00:00:00 2001 From: Kyle Hall Date: Fri, 8 Oct 2021 09:47:57 -0400 Subject: [PATCH] Bug 29137: DBRev 20.11.10.002 Signed-off-by: Fridolin Somers --- 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 9d4128390a..421c6ca0be 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.11.10.001"; +$VERSION = "20.11.10.002"; 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 7a2bd0588d..21311a66ee 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -23702,6 +23702,15 @@ if( CheckVersion( $DBversion ) ) { NewVersion( $DBversion, 28826, "Add system preference FacetOrder"); } +$DBversion = '20.11.10.002'; +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