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