From c42674cfd98a2774881f48db5454bdb3392c57c8 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Tue, 21 Apr 2020 12:33:47 +0100 Subject: [PATCH] Bug 24913: DBRev 19.12.00.078 Signed-off-by: Martin Renvoize --- Koha.pm | 2 +- ...913-add_PatronSelfRegistrationConfirmEmail_syspref.perl | 6 ------ installer/data/mysql/updatedatabase.pl | 7 +++++++ 3 files changed, 8 insertions(+), 7 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_24913-add_PatronSelfRegistrationConfirmEmail_syspref.perl diff --git a/Koha.pm b/Koha.pm index 9a9f0e1c24..f4c07b92b2 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.077"; +$VERSION = "19.12.00.078"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_24913-add_PatronSelfRegistrationConfirmEmail_syspref.perl b/installer/data/mysql/atomicupdate/bug_24913-add_PatronSelfRegistrationConfirmEmail_syspref.perl deleted file mode 100644 index 73ca835feb..0000000000 --- a/installer/data/mysql/atomicupdate/bug_24913-add_PatronSelfRegistrationConfirmEmail_syspref.perl +++ /dev/null @@ -1,6 +0,0 @@ -$DBversion = 'XXX'; -if( CheckVersion( $DBversion ) ) { - $dbh->do(q{INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES ('PatronSelfRegistrationConfirmEmail', '0', NULL, 'Require users to confirm their email address by entering it twice.', 'YesNo') }); - - NewVersion( $DBversion, 24913, "Add PatronSelfRegistrationConfirmEmail syspref"); -} diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 6c63f1981f..7ac1149c09 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -21830,6 +21830,13 @@ if( CheckVersion( $DBversion ) ) { NewVersion( $DBversion, 23727, "Editing course reserve items is broken"); } +$DBversion = '19.12.00.078'; +if( CheckVersion( $DBversion ) ) { + $dbh->do(q{INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES ('PatronSelfRegistrationConfirmEmail', '0', NULL, 'Require users to confirm their email address by entering it twice.', 'YesNo') }); + + NewVersion( $DBversion, 24913, "Add PatronSelfRegistrationConfirmEmail 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