Bug 32154: DBRev 22.06.00.085
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 11 Nov 2022 11:56:05 +0000 (08:56 -0300)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 11 Nov 2022 11:56:05 +0000 (08:56 -0300)
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha.pm
installer/data/mysql/atomicupdate/erm.pl [deleted file]
installer/data/mysql/db_revs/220600085.pl [new file with mode: 0644]

diff --git a/Koha.pm b/Koha.pm
index 2f64484..564f40d 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.084";
+$VERSION = "22.06.00.085";
 
 sub version {
     return $VERSION;
diff --git a/installer/data/mysql/atomicupdate/erm.pl b/installer/data/mysql/atomicupdate/erm.pl
deleted file mode 100644 (file)
index 582a1c4..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-use Modern::Perl;
-
-return {
-    bug_number => "32030",
-    description => "Add primary key to erm_user_roles",
-    up => sub {
-        my ($args) = @_;
-        my ($dbh, $out) = @$args{qw(dbh out)};
-
-        unless ( column_exists('erm_user_roles', 'user_role_id') ) {
-            $dbh->do(q{
-                ALTER TABLE `erm_user_roles`
-                ADD COLUMN `user_role_id` INT(11) NOT NULL AUTO_INCREMENT COMMENT 'primary key' FIRST,
-                ADD PRIMARY KEY(`user_role_id`);
-            });
-        }
-    }
-};
diff --git a/installer/data/mysql/db_revs/220600085.pl b/installer/data/mysql/db_revs/220600085.pl
new file mode 100644 (file)
index 0000000..582a1c4
--- /dev/null
@@ -0,0 +1,18 @@
+use Modern::Perl;
+
+return {
+    bug_number => "32030",
+    description => "Add primary key to erm_user_roles",
+    up => sub {
+        my ($args) = @_;
+        my ($dbh, $out) = @$args{qw(dbh out)};
+
+        unless ( column_exists('erm_user_roles', 'user_role_id') ) {
+            $dbh->do(q{
+                ALTER TABLE `erm_user_roles`
+                ADD COLUMN `user_role_id` INT(11) NOT NULL AUTO_INCREMENT COMMENT 'primary key' FIRST,
+                ADD PRIMARY KEY(`user_role_id`);
+            });
+        }
+    }
+};