Bug 29778: DBREv 21.12.00.005
authorFridolin Somers <fridolin.somers@biblibre.com>
Mon, 10 Jan 2022 06:52:36 +0000 (20:52 -1000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Mon, 10 Jan 2022 07:04:17 +0000 (21:04 -1000)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Koha.pm
installer/data/mysql/atomicupdate/bug_29778.pl [deleted file]
installer/data/mysql/db_revs/211200005.pl [new file with mode: 0755]

diff --git a/Koha.pm b/Koha.pm
index 1d8c033..ecc93e6 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 = "21.12.00.004";
+$VERSION = "21.12.00.005";
 
 sub version {
     return $VERSION;
diff --git a/installer/data/mysql/atomicupdate/bug_29778.pl b/installer/data/mysql/atomicupdate/bug_29778.pl
deleted file mode 100755 (executable)
index 48c97c7..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-use Modern::Perl;
-
-return {
-    bug_number => "29778",
-    description => "Delete orphan additional contents",
-    up => sub {
-        my ($args) = @_;
-        my ($dbh, $out) = @$args{qw(dbh out)};
-        $dbh->do(q{
-            DELETE FROM additional_contents
-            WHERE code NOT IN (
-                SELECT code FROM (
-                    SELECT code
-                    FROM additional_contents
-                    WHERE lang = "default"
-                ) as tmp
-            );
-        });
-    },
-}
diff --git a/installer/data/mysql/db_revs/211200005.pl b/installer/data/mysql/db_revs/211200005.pl
new file mode 100755 (executable)
index 0000000..48c97c7
--- /dev/null
@@ -0,0 +1,20 @@
+use Modern::Perl;
+
+return {
+    bug_number => "29778",
+    description => "Delete orphan additional contents",
+    up => sub {
+        my ($args) = @_;
+        my ($dbh, $out) = @$args{qw(dbh out)};
+        $dbh->do(q{
+            DELETE FROM additional_contents
+            WHERE code NOT IN (
+                SELECT code FROM (
+                    SELECT code
+                    FROM additional_contents
+                    WHERE lang = "default"
+                ) as tmp
+            );
+        });
+    },
+}