From b0c98b13cc1a3e13a29dc2e3cf968306b0e4610a Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Tue, 3 May 2022 10:10:39 -1000 Subject: [PATCH] Bug 14242: DBRev 21.12.00.045 Signed-off-by: Fridolin Somers --- Koha.pm | 2 +- .../atomicupdate/bug_14242-autofill_syspref.perl | 6 ------ installer/data/mysql/db_revs/211200045.pl | 14 ++++++++++++++ 3 files changed, 15 insertions(+), 7 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_14242-autofill_syspref.perl create mode 100755 installer/data/mysql/db_revs/211200045.pl diff --git a/Koha.pm b/Koha.pm index 604b7c2b52..80e71c04cf 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.12.00.044"; +$VERSION = "21.12.00.045"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_14242-autofill_syspref.perl b/installer/data/mysql/atomicupdate/bug_14242-autofill_syspref.perl deleted file mode 100644 index c56eae70ef..0000000000 --- a/installer/data/mysql/atomicupdate/bug_14242-autofill_syspref.perl +++ /dev/null @@ -1,6 +0,0 @@ -$DBversion = 'XXX'; -if( CheckVersion( $DBversion ) ) { - $dbh->do(q{ INSERT IGNORE INTO systempreferences (`variable`, `value`, `options`, `explanation`,`type`) VALUES ('OPACSuggestionAutoFill', '0', NULL, 'Automatically fill OPAC suggestion form with data from Google Books API','YesNo') }); - - NewVersion( $DBversion, 14242, "Add OPACSuggestionAutoFill system preference"); -} diff --git a/installer/data/mysql/db_revs/211200045.pl b/installer/data/mysql/db_revs/211200045.pl new file mode 100755 index 0000000000..ad62f36def --- /dev/null +++ b/installer/data/mysql/db_revs/211200045.pl @@ -0,0 +1,14 @@ +use Modern::Perl; + +return { + bug_number => "14242", + description => "Add OPACSuggestionAutoFill system preference", + up => sub { + my ($args) = @_; + my ($dbh, $out) = @$args{qw(dbh out)}; + $dbh->do(q{ + INSERT IGNORE INTO systempreferences (`variable`, `value`, `options`, `explanation`,`type`) + VALUES ('OPACSuggestionAutoFill', '0', NULL, 'Automatically fill OPAC suggestion form with data from Google Books API', 'YesNo') + }); + }, +}; -- 2.39.5