Переглянути джерело

Bug 24108: DBRev 20.12.00.013

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
21.05.x
Jonathan Druart 3 роки тому
джерело
коміт
6bd75d6dca
  1. 2
      Koha.pm
  2. 9
      installer/data/mysql/atomicupdate/bug_24108-add_SaveRecordbyControlNumber_syspref.perl
  3. 10
      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.12.00.012";
$VERSION = "20.12.00.013";
sub version {
return $VERSION;

9
installer/data/mysql/atomicupdate/bug_24108-add_SaveRecordbyControlNumber_syspref.perl

@ -1,9 +0,0 @@
$DBversion = 'XXX';
if( CheckVersion( $DBversion ) ) {
$dbh->do(q{
INSERT IGNORE INTO systempreferences
(variable, value, explanation, options, type) VALUES
('DefaultSaveRecordFileID', 'biblionumber', 'Defines whether the advanced cataloging editor will use the bibliographic record number or control number field to populate the name of the save file.', 'biblionumber|controlnumber', 'Choice')
});
NewVersion( $DBversion, 24108, "Add system preference SaveRecordbyControlNumber");
}

10
installer/data/mysql/updatedatabase.pl

@ -23520,6 +23520,16 @@ if( CheckVersion( $DBversion ) ) {
NewVersion( $DBversion, 27598, ["Add UPLOAD as a built-in system authorized value category", $description] );
}
$DBversion = '20.12.00.013';
if( CheckVersion( $DBversion ) ) {
$dbh->do(q{
INSERT IGNORE INTO systempreferences
(variable, value, explanation, options, type) VALUES
('DefaultSaveRecordFileID', 'biblionumber', 'Defines whether the advanced cataloging editor will use the bibliographic record number or control number field to populate the name of the save file.', 'biblionumber|controlnumber', 'Choice')
});
NewVersion( $DBversion, 24108, "Add system preference DefaultSaveRecordFileID");
}
# 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/';

Завантаження…
Відмінити
Зберегти