Bug 25045: DBRev 19.12.00.079
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 27 Apr 2020 10:17:33 +0000 (11:17 +0100)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 27 Apr 2020 10:17:33 +0000 (11:17 +0100)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Koha.pm
installer/data/mysql/atomicupdate/bug_25045.perl [deleted file]
installer/data/mysql/updatedatabase.pl

diff --git a/Koha.pm b/Koha.pm
index f4c07b9..14025c6 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 = "19.12.00.078";
+$VERSION = "19.12.00.079";
 
 sub version {
     return $VERSION;
diff --git a/installer/data/mysql/atomicupdate/bug_25045.perl b/installer/data/mysql/atomicupdate/bug_25045.perl
deleted file mode 100644 (file)
index d2b62ed..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-$DBversion = 'XXX'; # will be replaced by the RM
-if( CheckVersion( $DBversion ) ) {
-
-    # Default to the homologous OpacPublic syspref
-    my $opac_public = C4::Context->preference('OpacPublic') ? 1 : 0;
-
-    $dbh->do(qq{
-        INSERT IGNORE INTO `systempreferences`
-            (`variable`,`value`,`explanation`,`options`,`type`)
-        VALUES
-            ('RESTPublicAnonymousRequests', $opac_public, NULL,'If enabled, the API will allow anonymous access to public routes that don\'t require authenticated access'.','YesNo');
-    });
-
-    NewVersion( $DBversion, 25045, "Add a way to restrict anonymous access to public routes (OpacPublic behaviour)");
-}
index 7ac1149..def5093 100755 (executable)
@@ -21837,6 +21837,22 @@ if( CheckVersion( $DBversion ) ) {
     NewVersion( $DBversion, 24913, "Add PatronSelfRegistrationConfirmEmail syspref");
 }
 
+$DBversion = '19.12.00.079';
+if( CheckVersion( $DBversion ) ) {
+
+    # Default to the homologous OpacPublic syspref
+    my $opac_public = C4::Context->preference('OpacPublic') ? 1 : 0;
+
+    $dbh->do(qq{
+        INSERT IGNORE INTO `systempreferences`
+            (`variable`,`value`,`explanation`,`options`,`type`)
+        VALUES
+            ('RESTPublicAnonymousRequests', $opac_public, NULL,'If enabled, the API will allow anonymous access to public routes that don\'t require authenticated access'.','YesNo');
+    });
+
+    NewVersion( $DBversion, 25045, "Add a way to restrict anonymous access to public routes (OpacPublic behaviour)");
+}
+
 # SEE bug 13068
 # if there is anything in the atomicupdate, read and execute it.
 my $update_dir = C4::Context->config('intranetdir') . '/installer/data/mysql/atomicupdate/';