From a94d5297abeec32c9e3a7080605f2267b2c328dc Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Wed, 29 Apr 2015 15:23:43 -0300 Subject: [PATCH] Bug 13984: DBRev 3.19.00.034 Signed-off-by: Tomas Cohen Arazi --- .../bug_13984-add-CardnumberLength_unless_exists.sql | 1 - installer/data/mysql/updatedatabase.pl | 10 ++++++++++ kohaversion.pl | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_13984-add-CardnumberLength_unless_exists.sql diff --git a/installer/data/mysql/atomicupdate/bug_13984-add-CardnumberLength_unless_exists.sql b/installer/data/mysql/atomicupdate/bug_13984-add-CardnumberLength_unless_exists.sql deleted file mode 100644 index 8b294dfc9f..0000000000 --- a/installer/data/mysql/atomicupdate/bug_13984-add-CardnumberLength_unless_exists.sql +++ /dev/null @@ -1 +0,0 @@ -INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES('CardnumberLength', '', '', 'Set a length for card numbers.', 'Free'); diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 6c578a7cbf..2cbec162b3 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -10291,6 +10291,16 @@ if ( CheckVersion($DBversion) ) { SetVersion ($DBversion); } +$DBversion = "3.19.00.034"; +if ( CheckVersion($DBversion) ) { + $dbh->do(q| + INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) + VALUES('CardnumberLength', '', '', 'Set a length for card numbers.', 'Free') + |); + print "Upgrade to $DBversion done (Bug 13984: CardnumberLength syspref missing on some setups\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. diff --git a/kohaversion.pl b/kohaversion.pl index 016752dfcb..6fedc501f0 100644 --- a/kohaversion.pl +++ b/kohaversion.pl @@ -17,7 +17,7 @@ the kohaversion is divided in 4 parts : use strict; sub kohaversion { - our $VERSION = '3.19.00.033'; + our $VERSION = '3.19.00.034'; # version needs to be set this way # so that it can be picked up by Makefile.PL # during install -- 2.39.5