Bug 16829 - DBRev 16.06.00.014
authorKyle M Hall <kyle@bywatersolutions.com>
Wed, 17 Aug 2016 18:03:50 +0000 (18:03 +0000)
committerKyle M Hall <kyle@bywatersolutions.com>
Wed, 17 Aug 2016 18:09:38 +0000 (18:09 +0000)
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Koha.pm
installer/data/mysql/atomicupdate/bug_16829_action_logs_interface.sql [deleted file]
installer/data/mysql/updatedatabase.pl

diff --git a/Koha.pm b/Koha.pm
index a786955..e5dae38 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 = "16.06.00.013";
+$VERSION = "16.06.00.014";
 
 sub version {
     return $VERSION;
diff --git a/installer/data/mysql/atomicupdate/bug_16829_action_logs_interface.sql b/installer/data/mysql/atomicupdate/bug_16829_action_logs_interface.sql
deleted file mode 100644 (file)
index 9591824..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-ALTER TABLE `action_logs` ADD COLUMN `interface` VARCHAR(30) DEFAULT NULL AFTER `info`;
-ALTER TABLE `action_logs` ADD KEY `interface` (`interface`);
-
--- $DBversion = "16.06.00.XXX";
--- if ( CheckVersion($DBversion) ) {
---     $dbh->do(q{
---         ALTER TABLE `action_logs` ADD COLUMN `interface` VARCHAR(30) DEFAULT NULL AFTER `info`;
---     });
---     $dbh->do({
---         ALTER TABLE `action_logs` ADD KEY `interface` (`interface`);
---     });
---     print "Upgrade to $DBversion done (Bug 16829: action_logs should have an 'interface' column)\n";
---     SetVersion($DBversion);
--- }
index e67335f..e526b22 100755 (executable)
@@ -12807,6 +12807,20 @@ if ( CheckVersion($DBversion) ) {
     SetVersion($DBversion);
 }
 
+$DBversion = "16.06.00.014";
+if ( CheckVersion($DBversion) ) {
+    $dbh->do(q{
+        ALTER TABLE `action_logs` ADD COLUMN `interface` VARCHAR(30) DEFAULT NULL AFTER `info`;
+    });
+
+    $dbh->do(q{
+        ALTER TABLE `action_logs` ADD KEY `interface` (`interface`);
+    });
+
+    print "Upgrade to $DBversion done (Bug 16829: action_logs should have an 'interface' column)\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.