From 6398d1b24216b07cb424e4b084ecf60329e0db86 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Thu, 7 Jul 2016 18:36:25 +0000 Subject: [PATCH] Bug 3534 - DBRev 16.06.00.007 Signed-off-by: Kyle M Hall --- Koha.pm | 2 +- .../bug_3534_add_PatronQuickAdd_sysprefs.sql | 1 - installer/data/mysql/updatedatabase.pl | 11 +++++++++++ 3 files changed, 12 insertions(+), 2 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_3534_add_PatronQuickAdd_sysprefs.sql diff --git a/Koha.pm b/Koha.pm index 48e4cd2c01..240f7e08d3 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 = "16.06.00.006"; +$VERSION = "16.06.00.007"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_3534_add_PatronQuickAdd_sysprefs.sql b/installer/data/mysql/atomicupdate/bug_3534_add_PatronQuickAdd_sysprefs.sql deleted file mode 100644 index b210b0d744..0000000000 --- a/installer/data/mysql/atomicupdate/bug_3534_add_PatronQuickAdd_sysprefs.sql +++ /dev/null @@ -1 +0,0 @@ -INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES ('PatronQuickAddFields', '', 'A list of fields separated by "|" to be displayed along with mandatory fields in the patron quick add form if chosen at patron entry', NULL, 'Free'); diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 4c9ab032bc..43ba8ab9e8 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -12715,6 +12715,17 @@ if ( CheckVersion($DBversion) ) { SetVersion($DBversion); } +$DBversion = '16.06.00.007'; +if ( CheckVersion($DBversion) ) { + $dbh->do(q{ + INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) + VALUES ('PatronQuickAddFields', '', 'A list of fields separated by "|" to be displayed along with mandatory fields in the patron quick add form if chosen at patron entry', NULL, 'Free'); + }); + + print "Upgrade to $DBversion done (Bug 3534 - Patron quick add form)\n"; + SetVersion($DBversion); +} + # DEVELOPER PROCESS, search for anything to execute in the db_update directory # SEE bug 13068 -- 2.39.5