Browse Source

Bug 24108: DBRev 20.12.00.013

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
master
Jonathan Druart 1 week ago
parent
commit
6bd75d6dca
3 changed files with 11 additions and 10 deletions
  1. +1
    -1
      Koha.pm
  2. +0
    -9
      installer/data/mysql/atomicupdate/bug_24108-add_SaveRecordbyControlNumber_syspref.perl
  3. +10
    -0
      installer/data/mysql/updatedatabase.pl

+ 1
- 1
Koha.pm View File

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


+ 0
- 9
installer/data/mysql/atomicupdate/bug_24108-add_SaveRecordbyControlNumber_syspref.perl View File

@@ -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
- 0
installer/data/mysql/updatedatabase.pl View File

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


Loading…
Cancel
Save