Bug 32330: DBRev 22.12.00.001
authorTomas Cohen Arazi <tomascohen@theke.io>
Mon, 19 Dec 2022 13:17:26 +0000 (10:17 -0300)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 19 Dec 2022 13:17:26 +0000 (10:17 -0300)
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha.pm
installer/data/mysql/atomicupdate/bug_32330.pl [deleted file]
installer/data/mysql/db_revs/221200001.pl [new file with mode: 0755]

diff --git a/Koha.pm b/Koha.pm
index 8e4d783..401c994 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 = "22.12.00.000";
+$VERSION = "22.12.00.001";
 
 sub version {
     return $VERSION;
diff --git a/installer/data/mysql/atomicupdate/bug_32330.pl b/installer/data/mysql/atomicupdate/bug_32330.pl
deleted file mode 100755 (executable)
index 90d3c9a..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-use Modern::Perl;
-
-return {
-    bug_number => "32330",
-    description => "Add indexes to background_jobs table",
-    up => sub {
-        my ($args) = @_;
-        my ($dbh, $out) = @$args{qw(dbh out)};
-        unless ( index_exists('background_jobs', 'borrowernumber') ) {
-            $dbh->do(q{
-                ALTER TABLE `background_jobs` ADD INDEX `borrowernumber` (`borrowernumber`)
-            });
-        }
-        unless ( index_exists('background_jobs', 'queue') ) {
-            $dbh->do(q{
-                ALTER TABLE `background_jobs` ADD INDEX `queue` (`queue`)
-            });
-        }
-        unless ( index_exists('background_jobs', 'status') ) {
-            $dbh->do(q{
-                ALTER TABLE `background_jobs` ADD INDEX `status` (`status`)
-            });
-        }
-    },
-};
diff --git a/installer/data/mysql/db_revs/221200001.pl b/installer/data/mysql/db_revs/221200001.pl
new file mode 100755 (executable)
index 0000000..90d3c9a
--- /dev/null
@@ -0,0 +1,25 @@
+use Modern::Perl;
+
+return {
+    bug_number => "32330",
+    description => "Add indexes to background_jobs table",
+    up => sub {
+        my ($args) = @_;
+        my ($dbh, $out) = @$args{qw(dbh out)};
+        unless ( index_exists('background_jobs', 'borrowernumber') ) {
+            $dbh->do(q{
+                ALTER TABLE `background_jobs` ADD INDEX `borrowernumber` (`borrowernumber`)
+            });
+        }
+        unless ( index_exists('background_jobs', 'queue') ) {
+            $dbh->do(q{
+                ALTER TABLE `background_jobs` ADD INDEX `queue` (`queue`)
+            });
+        }
+        unless ( index_exists('background_jobs', 'status') ) {
+            $dbh->do(q{
+                ALTER TABLE `background_jobs` ADD INDEX `status` (`status`)
+            });
+        }
+    },
+};