From 452196ebbc49d9c73667249d03eedcc96be3ccfe Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Thu, 22 Oct 2015 10:24:15 -0300 Subject: [PATCH] Bug 12194: DBRev 3.21.00.039 Signed-off-by: Tomas Cohen Arazi --- Koha.pm | 2 +- .../bug-12194-add-column-oblique_title.sql | 10 ---------- installer/data/mysql/updatedatabase.pl | 9 +++++++++ 3 files changed, 10 insertions(+), 11 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug-12194-add-column-oblique_title.sql diff --git a/Koha.pm b/Koha.pm index e1e43a0416..892d6c5fae 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 = "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 index 200379ffb0..0000000000 --- a/installer/data/mysql/atomicupdate/bug-12194-add-column-oblique_title.sql +++ /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); --- } diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 3360de6377..1669c10352 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -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. -- 2.39.5