Bug 13790: DBRev 3.19.00.028
authorTomas Cohen Arazi <tomascohen@gmail.com>
Thu, 23 Apr 2015 16:01:40 +0000 (13:01 -0300)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Thu, 23 Apr 2015 16:04:29 +0000 (13:04 -0300)
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>

installer/data/mysql/updatedatabase.pl
kohaversion.pl

index ec7005e..0aaf114 100755 (executable)
@@ -9919,9 +9919,8 @@ if(CheckVersion($DBversion)) {
     SetVersion($DBversion);
 }
 
-
 $DBversion = '3.19.00.017';
-if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
+if ( CheckVersion($DBversion) ) {
     # First create the column
     $dbh->do("ALTER TABLE issuingrules ADD onshelfholds tinyint(1) default 0 NOT NULL");
     # Now update the column
@@ -10040,7 +10039,7 @@ if ( CheckVersion($DBversion) ) {
 }
 
 $DBversion = "3.19.00.026";
-if(CheckVersion($DBversion)) {
+if( CheckVersion($DBversion) ) {
     if ( C4::Context->preference('marcflavour') eq 'MARC21' ) {
     $dbh->do(q{
         INSERT IGNORE INTO auth_tag_structure (authtypecode, tagfield, liblibrarian, libopac, repeatable, mandatory, authorised_value) VALUES
@@ -10154,8 +10153,8 @@ if ( CheckVersion($DBversion) ) {
     SetVersion($DBversion);
 }
 
-$DBversion = "3.19.00.XXX";
-if(CheckVersion($DBversion)) {
+$DBversion = "3.19.00.028";
+if( CheckVersion($DBversion) ) {
     $dbh->do(q{
         ALTER TABLE old_issues ADD issue_id INT( 11 ) NOT NULL AUTO_INCREMENT PRIMARY KEY FIRST
     });
@@ -10184,7 +10183,6 @@ if(CheckVersion($DBversion)) {
     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.
index 0bfccb7..7d6b7fc 100644 (file)
@@ -17,7 +17,7 @@ the kohaversion is divided in 4 parts :
 use strict;
 
 sub kohaversion {
-    our $VERSION = '3.19.00.027';
+    our $VERSION = '3.19.00.028';
     # version needs to be set this way
     # so that it can be picked up by Makefile.PL
     # during install