From 8cec8d548ce2924eaf4cc9a668ed7f9b7258460e Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Mon, 6 Apr 2020 10:48:09 +0100 Subject: [PATCH] Bug 22534: DBRev 19.12.00.063 Signed-off-by: Martin Renvoize --- Koha.pm | 2 +- .../bug_22534-add_PreFillGuaranteeField_syspref.perl | 7 ------- installer/data/mysql/updatedatabase.pl | 7 +++++++ 3 files changed, 8 insertions(+), 8 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_22534-add_PreFillGuaranteeField_syspref.perl diff --git a/Koha.pm b/Koha.pm index 21714733cb..e43bf77c13 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 = "19.12.00.062"; +$VERSION = "19.12.00.063"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_22534-add_PreFillGuaranteeField_syspref.perl b/installer/data/mysql/atomicupdate/bug_22534-add_PreFillGuaranteeField_syspref.perl deleted file mode 100644 index da4ece4ef5..0000000000 --- a/installer/data/mysql/atomicupdate/bug_22534-add_PreFillGuaranteeField_syspref.perl +++ /dev/null @@ -1,7 +0,0 @@ -$DBversion = 'XXX'; # will be replaced by the RM -if( CheckVersion( $DBversion ) ) { - $dbh->do(q{INSERT IGNORE INTO systempreferences (variable, value, options, explanation, type) VALUES ('PrefillGuaranteeField', 'phone,email,streetnumber,address,city,state,zipcode,country', NULL, 'Prefill these fields in guarantee member entry form from guarantor patron record', 'Multiple') }); - - SetVersion( $DBversion ); - print "Upgrade to $DBversion done (Bug XXXXX - description)\n"; -} diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 3dae149304..7123d03c67 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -21432,6 +21432,13 @@ if( CheckVersion( $DBversion ) ) { NewVersion( $DBversion, 25010, "Fix typo in account_debit_type description"); } +$DBversion = '19.12.00.063'; +if( CheckVersion( $DBversion ) ) { + $dbh->do(q{INSERT IGNORE INTO systempreferences (variable, value, options, explanation, type) VALUES ('PrefillGuaranteeField', 'phone,email,streetnumber,address,city,state,zipcode,country', NULL, 'Prefill these fields in guarantee member entry form from guarantor patron record', 'Multiple') }); + + NewVersion( $DBversion, 22534, "Add PreFillGuaranteeField syspref"); +} + # 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