Bug 12194: DBRev 3.21.00.039
authorTomas Cohen Arazi <tomascohen@theke.io>
Thu, 22 Oct 2015 13:24:15 +0000 (10:24 -0300)
committerTomas Cohen Arazi <tomascohen@theke.io>
Thu, 22 Oct 2015 13:24:15 +0000 (10:24 -0300)
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha.pm
installer/data/mysql/atomicupdate/bug-12194-add-column-oblique_title.sql [deleted file]
installer/data/mysql/updatedatabase.pl

diff --git a/Koha.pm b/Koha.pm
index e1e43a0..892d6c5 100644 (file)
--- 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 = "3.21.00.038";
+$VERSION = "3.21.00.039";
 
 sub version {
     return $VERSION;
diff --git a/installer/data/mysql/atomicupdate/bug-12194-add-column-oblique_title.sql b/installer/data/mysql/atomicupdate/bug-12194-add-column-oblique_title.sql
deleted file mode 100644 (file)
index 200379f..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-ALTER TABLE creator_layouts ADD COLUMN oblique_title INT(1) NULL DEFAULT 1 AFTER guidebox;
-
--- $DBversion = "3.21.00.XXX";
--- if ( CheckVersion($DBversion) ) {
---     $dbh->do(q|
---         ALTER TABLE creator_layouts ADD COLUMN oblique_title INT(1) NULL DEFAULT 1 AFTER guidebox
---     |);
---     print "Upgrade to $DBversion done (Bug 12194: Add column oblique_title to layouts)\n";
---     SetVersion($DBversion);
--- }
index 3360de6..1669c10 100755 (executable)
@@ -11134,6 +11134,15 @@ if ( CheckVersion($DBversion) ) {
     SetVersion($DBversion);
 }
 
+$DBversion = "3.21.00.039";
+if ( CheckVersion($DBversion) ) {
+    $dbh->do(q|
+        ALTER TABLE creator_layouts ADD COLUMN oblique_title INT(1) NULL DEFAULT 1 AFTER guidebox
+    |);
+    print "Upgrade to $DBversion done (Bug 12194: Add column oblique_title to layouts)\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.