Browse Source

Bug 26454: DBRev 20.06.00.040

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
20.11.x
Jonathan Druart 4 years ago
parent
commit
8a6427e9e2
  1. 2
      Koha.pm
  2. 7
      installer/data/mysql/atomicupdate/bug_26454-add_OpacMetaDescription_syspref.perl
  3. 7
      installer/data/mysql/updatedatabase.pl

2
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;

7
installer/data/mysql/atomicupdate/bug_26454-add_OpacMetaDescription_syspref.perl

@ -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");
}

7
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/';

Loading…
Cancel
Save