Bug 21121: DBRev 18.06.00.014
authorNick Clemens <nick@bywatersolutions.com>
Tue, 14 Aug 2018 12:33:52 +0000 (12:33 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Tue, 14 Aug 2018 12:33:52 +0000 (12:33 +0000)
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Koha.pm
installer/data/mysql/atomicupdate/bug_21121_new_syspref_hide_personal_patron_data_on_circulation_page.sql [deleted file]
installer/data/mysql/updatedatabase.pl

diff --git a/Koha.pm b/Koha.pm
index a475070..9446e4c 100644 (file)
--- 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 (file)
index f814af6..0000000
+++ /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');
index 5567c3b..53b3693 100755 (executable)
@@ -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.