Bug 24606: DBRev 22.06.00.083
authorTomas Cohen Arazi <tomascohen@theke.io>
Thu, 10 Nov 2022 17:41:40 +0000 (14:41 -0300)
committerTomas Cohen Arazi <tomascohen@theke.io>
Thu, 10 Nov 2022 17:41:40 +0000 (14:41 -0300)
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha.pm
installer/data/mysql/atomicupdate/bug_24606.pl [deleted file]
installer/data/mysql/db_revs/220600083.pl [new file with mode: 0755]

diff --git a/Koha.pm b/Koha.pm
index 6ab9d0d..7c91e3d 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.082";
+$VERSION = "22.06.00.083";
 
 sub version {
     return $VERSION;
diff --git a/installer/data/mysql/atomicupdate/bug_24606.pl b/installer/data/mysql/atomicupdate/bug_24606.pl
deleted file mode 100755 (executable)
index 5401cdc..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-use Modern::Perl;
-
-return {
-    bug_number => "24606",
-    description => "Add new table item_editor_templates",
-    up => sub {
-        my ($args) = @_;
-        my ($dbh, $out) = @$args{qw(dbh out)};
-
-        unless( TableExists( 'item_editor_templates' ) ) {
-            $dbh->do(q{
-                CREATE TABLE `item_editor_templates` (
-                  `id` INT(11) NOT NULL auto_increment COMMENT "id for the template",
-                  `patron_id` int(11) DEFAULT NULL COMMENT "creator of this template",
-                  `name` MEDIUMTEXT NOT NULL COMMENT "template name",
-                  `is_shared` TINYINT(1) NOT NULL DEFAULT 0 COMMENT "controls if template is shared",
-                  `contents` LONGTEXT NOT NULL COMMENT "json encoded template data",
-                  PRIMARY KEY  (`id`),
-                  CONSTRAINT `bn` FOREIGN KEY (`patron_id`) REFERENCES `borrowers` (`borrowernumber`) ON DELETE SET NULL ON UPDATE CASCADE
-                ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-            });
-
-            $dbh->do(q{
-                INSERT IGNORE INTO permissions (module_bit, code, description) VALUES
-                ( 9, 'manage_item_editor_templates', 'Update and delete item editor template owned by others');
-            });
-        }
-    },
-};
diff --git a/installer/data/mysql/db_revs/220600083.pl b/installer/data/mysql/db_revs/220600083.pl
new file mode 100755 (executable)
index 0000000..5401cdc
--- /dev/null
@@ -0,0 +1,29 @@
+use Modern::Perl;
+
+return {
+    bug_number => "24606",
+    description => "Add new table item_editor_templates",
+    up => sub {
+        my ($args) = @_;
+        my ($dbh, $out) = @$args{qw(dbh out)};
+
+        unless( TableExists( 'item_editor_templates' ) ) {
+            $dbh->do(q{
+                CREATE TABLE `item_editor_templates` (
+                  `id` INT(11) NOT NULL auto_increment COMMENT "id for the template",
+                  `patron_id` int(11) DEFAULT NULL COMMENT "creator of this template",
+                  `name` MEDIUMTEXT NOT NULL COMMENT "template name",
+                  `is_shared` TINYINT(1) NOT NULL DEFAULT 0 COMMENT "controls if template is shared",
+                  `contents` LONGTEXT NOT NULL COMMENT "json encoded template data",
+                  PRIMARY KEY  (`id`),
+                  CONSTRAINT `bn` FOREIGN KEY (`patron_id`) REFERENCES `borrowers` (`borrowernumber`) ON DELETE SET NULL ON UPDATE CASCADE
+                ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
+            });
+
+            $dbh->do(q{
+                INSERT IGNORE INTO permissions (module_bit, code, description) VALUES
+                ( 9, 'manage_item_editor_templates', 'Update and delete item editor template owned by others');
+            });
+        }
+    },
+};