From 239b81c1dd0cfa2e5e1f720ba9b8554536a9bc44 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Thu, 27 Oct 2016 14:02:19 +0000 Subject: [PATCH] Bug 14874 - DBRev 16.06.00.038 Signed-off-by: Kyle M Hall --- Koha.pm | 2 +- ...bug14874-addDefaultPatronSearchFieldspreference.sql | 1 - installer/data/mysql/updatedatabase.pl | 10 ++++++++++ 3 files changed, 11 insertions(+), 2 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug14874-addDefaultPatronSearchFieldspreference.sql diff --git a/Koha.pm b/Koha.pm index 6457678567..2565af6e4a 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.037"; +$VERSION = "16.06.00.038"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug14874-addDefaultPatronSearchFieldspreference.sql b/installer/data/mysql/atomicupdate/bug14874-addDefaultPatronSearchFieldspreference.sql deleted file mode 100644 index 1790e036e2..0000000000 --- a/installer/data/mysql/atomicupdate/bug14874-addDefaultPatronSearchFieldspreference.sql +++ /dev/null @@ -1 +0,0 @@ -INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES ('DefaultPatronSearchFields','surname,firstname,othernames,cardnumber,userid',NULL,'Comma separated list defining the default fields to be used during a patron search','free'); diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 418c0a920f..d7afd7dd5b 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -13334,6 +13334,16 @@ if ( CheckVersion($DBversion) ) { SetVersion($DBversion); } +$DBversion = '16.06.00.038'; +if ( CheckVersion($DBversion) ) { + $dbh->do(q{ + INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES ('DefaultPatronSearchFields','surname,firstname,othernames,cardnumber,userid',NULL,'Comma separated list defining the default fields to be used during a patron search','free'); + }); + + print "Upgrade to $DBversion done (Bug 14874 - Add ability to search for patrons by date of birth from checkout and patron quick searches)\n"; + SetVersion($DBversion); +} + # DEVELOPER PROCESS, search for anything to execute in the db_update directory # SEE bug 13068 # if there is anything in the atomicupdate, read and execute it. -- 2.39.2