From ed6070a5b43d0f3baaaf07c67faaa92baf00e7aa Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Tue, 14 Aug 2018 12:33:52 +0000 Subject: [PATCH] Bug 21121: DBRev 18.06.00.014 Signed-off-by: Nick Clemens --- Koha.pm | 2 +- ...ref_hide_personal_patron_data_on_circulation_page.sql | 1 - installer/data/mysql/updatedatabase.pl | 9 +++++++++ 3 files changed, 10 insertions(+), 2 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_21121_new_syspref_hide_personal_patron_data_on_circulation_page.sql diff --git a/Koha.pm b/Koha.pm index a475070d96..9446e4c4fd 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 = "18.06.00.013"; +$VERSION = "18.06.00.014"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_21121_new_syspref_hide_personal_patron_data_on_circulation_page.sql b/installer/data/mysql/atomicupdate/bug_21121_new_syspref_hide_personal_patron_data_on_circulation_page.sql deleted file mode 100644 index f814af6fde..0000000000 --- a/installer/data/mysql/atomicupdate/bug_21121_new_syspref_hide_personal_patron_data_on_circulation_page.sql +++ /dev/null @@ -1 +0,0 @@ -INSERT IGNORE INTO systempreferences (variable, value, options, explanation) VALUES ('HidePersonalPatronDetailOnCirculation', 0, 'YesNo', 'Hide patrons phone number, email address, street address and city in the circulation page'); diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 5567c3bcf3..53b3693e40 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -16237,6 +16237,15 @@ if( CheckVersion( $DBversion ) ) { print "Upgrade to $DBversion done (Bug 20997 - Add Koha::Account::Line::apply)\n"; } +$DBversion = '18.06.00.014'; +if( CheckVersion( $DBversion ) ) { + $dbh->do(q{ + INSERT IGNORE INTO systempreferences (variable, value, options, explanation) VALUES ('HidePersonalPatronDetailOnCirculation', 0, 'YesNo', 'Hide patrons phone number, email address, street address and city in the circulation page'); + }); + SetVersion( $DBversion ); + print "Upgrade to $DBversion done (Bug 21121 - New syspref to allow hiding of private patron data in circulation page)\n"; +} + # SEE bug 13068 # if there is anything in the atomicupdate, read and execute it. -- 2.39.5