From 0abe936e37cefad5986f14290ca178d68495d323 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Thu, 19 Mar 2020 09:13:42 +0000 Subject: [PATCH] Bug 3137: DBRev 19.12.00.045 Signed-off-by: Martin Renvoize --- Koha.pm | 2 +- ...3137-add_CollapseFieldsPatronAddForm_syspref.perl | 7 ------- installer/data/mysql/updatedatabase.pl | 12 ++++++++++++ 3 files changed, 13 insertions(+), 8 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_3137-add_CollapseFieldsPatronAddForm_syspref.perl diff --git a/Koha.pm b/Koha.pm index 3e11928d95..8d4359427a 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.044"; +$VERSION = "19.12.00.045"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_3137-add_CollapseFieldsPatronAddForm_syspref.perl b/installer/data/mysql/atomicupdate/bug_3137-add_CollapseFieldsPatronAddForm_syspref.perl deleted file mode 100644 index c3828920d5..0000000000 --- a/installer/data/mysql/atomicupdate/bug_3137-add_CollapseFieldsPatronAddForm_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 ('CollapseFieldsPatronAddForm','',NULL,'Collapse these fields by default when adding a new patron. These fields can still be expanded.','Multiple') }); - - SetVersion( $DBversion ); - print "Upgrade to $DBversion done (Bug 4461 - Add CollapseFieldsPatronAddForm system preference)\n"; -} diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index e9dc3e68e5..60e4d01ce2 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -21170,6 +21170,18 @@ if( CheckVersion( $DBversion ) ) { print "Upgrade to $DBversion done (Bug 24846 - Add a new permission for new tool batch extend due dates)\n"; } +$DBversion = '19.12.00.045'; +if( CheckVersion( $DBversion ) ) { + $dbh->do(q{ + INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) + VALUES + ('CollapseFieldsPatronAddForm','',NULL,'Collapse these fields by default when adding a new patron. These fields can still be expanded.','Multiple') + }); + + SetVersion( $DBversion ); + print "Upgrade to $DBversion done (Bug 4461 - Add CollapseFieldsPatronAddForm system preference)\n"; +} + # 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