Bug 32057: DBRev 22.12.00.013
authorTomas Cohen Arazi <tomascohen@theke.io>
Tue, 14 Mar 2023 11:58:37 +0000 (08:58 -0300)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 14 Mar 2023 11:58:37 +0000 (08:58 -0300)
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha.pm
installer/data/mysql/atomicupdate/bug_32057.pl [deleted file]
installer/data/mysql/db_revs/221200013.pl [new file with mode: 0755]

diff --git a/Koha.pm b/Koha.pm
index 5c03374..be58abf 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.012";
+$VERSION = "22.12.00.013";
 
 sub version {
     return $VERSION;
diff --git a/installer/data/mysql/atomicupdate/bug_32057.pl b/installer/data/mysql/atomicupdate/bug_32057.pl
deleted file mode 100755 (executable)
index a0cc9a7..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-use Modern::Perl;
-
-return {
-    bug_number  => "32057",
-    description => "Bug 32057 - Add optional stack trace to action logs",
-    up          => sub {
-        my ($args) = @_;
-        my ($dbh, $out) = @$args{qw(dbh out)};
-
-        if ( !column_exists( 'action_logs', 'trace' ) ) {
-            $dbh->do(q{
-              ALTER TABLE action_logs
-                ADD COLUMN `trace` TEXT DEFAULT NULL COMMENT 'An optional stack trace enabled by ActionLogsTraceDepth' AFTER `script`
-            });
-            say $out "Added column 'action_logs.trace'";
-        }
-
-        $dbh->do(q{
-            INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
-            ('ActionLogsTraceDepth', '0', '', 'Sets the maximum depth of the action logs stack trace', 'Integer')
-        });
-        say $out "Added new system preference 'ActionLogsTraceDepth'";
-    },
-};
diff --git a/installer/data/mysql/db_revs/221200013.pl b/installer/data/mysql/db_revs/221200013.pl
new file mode 100755 (executable)
index 0000000..a0cc9a7
--- /dev/null
@@ -0,0 +1,24 @@
+use Modern::Perl;
+
+return {
+    bug_number  => "32057",
+    description => "Bug 32057 - Add optional stack trace to action logs",
+    up          => sub {
+        my ($args) = @_;
+        my ($dbh, $out) = @$args{qw(dbh out)};
+
+        if ( !column_exists( 'action_logs', 'trace' ) ) {
+            $dbh->do(q{
+              ALTER TABLE action_logs
+                ADD COLUMN `trace` TEXT DEFAULT NULL COMMENT 'An optional stack trace enabled by ActionLogsTraceDepth' AFTER `script`
+            });
+            say $out "Added column 'action_logs.trace'";
+        }
+
+        $dbh->do(q{
+            INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
+            ('ActionLogsTraceDepth', '0', '', 'Sets the maximum depth of the action logs stack trace', 'Integer')
+        });
+        say $out "Added new system preference 'ActionLogsTraceDepth'";
+    },
+};