Bug 30944: DBRev 22.06.00.058
authorTomas Cohen Arazi <tomascohen@theke.io>
Mon, 3 Oct 2022 16:47:37 +0000 (13:47 -0300)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 3 Oct 2022 16:47:37 +0000 (13:47 -0300)
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha.pm
installer/data/mysql/atomicupdate/bug_30944_-_fix_RecallCancellation_branchtransfers.cancellation_reason.pl [deleted file]
installer/data/mysql/db_revs/220600058.pl [new file with mode: 0755]

diff --git a/Koha.pm b/Koha.pm
index dd217d0..69375f5 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.06.00.057";
+$VERSION = "22.06.00.058";
 
 sub version {
     return $VERSION;
diff --git a/installer/data/mysql/atomicupdate/bug_30944_-_fix_RecallCancellation_branchtransfers.cancellation_reason.pl b/installer/data/mysql/atomicupdate/bug_30944_-_fix_RecallCancellation_branchtransfers.cancellation_reason.pl
deleted file mode 100644 (file)
index f424873..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-use Modern::Perl;
-
-return {
-    bug_number => "30944",
-    description => "Replace branchtransfers.cancellation_reason CancelRecall with RecallCancellation",
-    up => sub {
-        my ($args) = @_;
-        my ($dbh, $out) = @$args{qw(dbh out)};
-
-        $dbh->do(q{
-            ALTER TABLE branchtransfers MODIFY COLUMN cancellation_reason ENUM('Manual','StockrotationAdvance','StockrotationRepatriation','ReturnToHome','ReturnToHolding','RotatingCollection','Reserve','LostReserve','CancelReserve','ItemLost','WrongTransfer','RecallCancellation') COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'what triggered the transfer cancellation'
-        });
-    },
-};
diff --git a/installer/data/mysql/db_revs/220600058.pl b/installer/data/mysql/db_revs/220600058.pl
new file mode 100755 (executable)
index 0000000..f424873
--- /dev/null
@@ -0,0 +1,14 @@
+use Modern::Perl;
+
+return {
+    bug_number => "30944",
+    description => "Replace branchtransfers.cancellation_reason CancelRecall with RecallCancellation",
+    up => sub {
+        my ($args) = @_;
+        my ($dbh, $out) = @$args{qw(dbh out)};
+
+        $dbh->do(q{
+            ALTER TABLE branchtransfers MODIFY COLUMN cancellation_reason ENUM('Manual','StockrotationAdvance','StockrotationRepatriation','ReturnToHome','ReturnToHolding','RotatingCollection','Reserve','LostReserve','CancelReserve','ItemLost','WrongTransfer','RecallCancellation') COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'what triggered the transfer cancellation'
+        });
+    },
+};