From 8a6427e9e28ec927748533e8e7b67e73ed36c9b6 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 30 Sep 2020 14:16:31 +0000 Subject: [PATCH] Bug 26454: DBRev 20.06.00.040 Signed-off-by: Jonathan Druart --- Koha.pm | 2 +- .../bug_26454-add_OpacMetaDescription_syspref.perl | 7 ------- installer/data/mysql/updatedatabase.pl | 7 +++++++ 3 files changed, 8 insertions(+), 8 deletions(-) delete mode 100755 installer/data/mysql/atomicupdate/bug_26454-add_OpacMetaDescription_syspref.perl diff --git a/Koha.pm b/Koha.pm index cd95e06b64..be737b310f 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.06.00.039"; +$VERSION = "20.06.00.040"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_26454-add_OpacMetaDescription_syspref.perl b/installer/data/mysql/atomicupdate/bug_26454-add_OpacMetaDescription_syspref.perl deleted file mode 100755 index 30c43e0d62..0000000000 --- a/installer/data/mysql/atomicupdate/bug_26454-add_OpacMetaDescription_syspref.perl +++ /dev/null @@ -1,7 +0,0 @@ -$DBversion = 'XXX'; # will be replaced by the RM -if( CheckVersion( $DBversion ) ) { - $dbh->do( "INSERT IGNORE INTO systempreferences (variable, value, options, explanation, type) VALUES ('OpacMetaDescription','','','This description will show in search engine results (160 characters).','Textarea');" ); - - # Always end with this (adjust the bug info) - NewVersion( $DBversion, 26454, "Add system preference to set meta description for the OPAC"); -} diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 2702461f75..b9e6014582 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -22810,6 +22810,13 @@ if( CheckVersion( $DBversion ) ) { NewVersion( $DBversion, 18958, "Add reserve_id to hold_fill_targets"); } +$DBversion = '20.06.00.040'; +if( CheckVersion( $DBversion ) ) { + $dbh->do( "INSERT IGNORE INTO systempreferences (variable, value, options, explanation, type) VALUES ('OpacMetaDescription','','','This description will show in search engine results (160 characters).','Textarea');" ); + + NewVersion( $DBversion, 26454, "Add system preference to set meta description for the OPAC"); +} + # 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