Bug 30327: DBRev 22.06.00.008
authorTomas Cohen Arazi <tomascohen@theke.io>
Sat, 25 Jun 2022 18:30:47 +0000 (15:30 -0300)
committerTomas Cohen Arazi <tomascohen@theke.io>
Sat, 25 Jun 2022 18:30:47 +0000 (15:30 -0300)
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha.pm
installer/data/mysql/atomicupdate/bug_30327_add_sortComponents_syspref.pl [deleted file]
installer/data/mysql/db_revs/220600008.pl [new file with mode: 0755]

diff --git a/Koha.pm b/Koha.pm
index 3f3b32c..2e9cf9a 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.007";
+$VERSION = "22.06.00.008";
 
 sub version {
     return $VERSION;
diff --git a/installer/data/mysql/atomicupdate/bug_30327_add_sortComponents_syspref.pl b/installer/data/mysql/atomicupdate/bug_30327_add_sortComponents_syspref.pl
deleted file mode 100755 (executable)
index cbc9416..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-use Modern::Perl;
-
-return {
-    bug_number => "30327",
-    description => "Add ComponentSortField and ComponentSortOrder sysprefs",
-    up => sub {
-        my ($args) = @_;
-        my ($dbh, $out) = @$args{qw(dbh out)};
-        $dbh->do(q{
-            INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
-            ('ComponentSortField','title','call_number|pubdate|acqdate|title|author','Specify the default field used for sorting','Choice'),
-            ('ComponentSortOrder','asc','asc|dsc|az|za','Specify the default sort order','Choice')
-        });
-        say $out "Added ComponentSortField and ComponentSortOrder sysprefs";
-    },
-};
diff --git a/installer/data/mysql/db_revs/220600008.pl b/installer/data/mysql/db_revs/220600008.pl
new file mode 100755 (executable)
index 0000000..cbc9416
--- /dev/null
@@ -0,0 +1,16 @@
+use Modern::Perl;
+
+return {
+    bug_number => "30327",
+    description => "Add ComponentSortField and ComponentSortOrder sysprefs",
+    up => sub {
+        my ($args) = @_;
+        my ($dbh, $out) = @$args{qw(dbh out)};
+        $dbh->do(q{
+            INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
+            ('ComponentSortField','title','call_number|pubdate|acqdate|title|author','Specify the default field used for sorting','Choice'),
+            ('ComponentSortOrder','asc','asc|dsc|az|za','Specify the default sort order','Choice')
+        });
+        say $out "Added ComponentSortField and ComponentSortOrder sysprefs";
+    },
+};