From 6bd75d6dcaf77a7d5b11c1eabcbdb17ae0f6e12a Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 17 Feb 2021 15:28:41 +0000 Subject: [PATCH] Bug 24108: DBRev 20.12.00.013 Signed-off-by: Jonathan Druart --- Koha.pm | 2 +- ...ug_24108-add_SaveRecordbyControlNumber_syspref.perl | 9 --------- installer/data/mysql/updatedatabase.pl | 10 ++++++++++ 3 files changed, 11 insertions(+), 10 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_24108-add_SaveRecordbyControlNumber_syspref.perl diff --git a/Koha.pm b/Koha.pm index 16782c147d..6110a96573 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.12.00.012"; +$VERSION = "20.12.00.013"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_24108-add_SaveRecordbyControlNumber_syspref.perl b/installer/data/mysql/atomicupdate/bug_24108-add_SaveRecordbyControlNumber_syspref.perl deleted file mode 100644 index 9e27bcd8c2..0000000000 --- a/installer/data/mysql/atomicupdate/bug_24108-add_SaveRecordbyControlNumber_syspref.perl +++ /dev/null @@ -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"); -} diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 79b4d1ae68..4de16f8078 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/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/'; -- 2.39.2