Bug 20415: DBRev 19.12.00.056
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 26 Mar 2020 11:54:44 +0000 (11:54 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 26 Mar 2020 11:54:44 +0000 (11:54 +0000)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Koha.pm
installer/data/mysql/atomicupdate/bug_20415.sql [deleted file]
installer/data/mysql/updatedatabase.pl

diff --git a/Koha.pm b/Koha.pm
index 3c332df..6da12a6 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.055";
+$VERSION = "19.12.00.056";
 
 sub version {
     return $VERSION;
diff --git a/installer/data/mysql/atomicupdate/bug_20415.sql b/installer/data/mysql/atomicupdate/bug_20415.sql
deleted file mode 100644 (file)
index f1bb79b..0000000
+++ /dev/null
@@ -1 +0,0 @@
-DELETE FROM systempreferences WHERE variable='UseKohaPlugins';
\ No newline at end of file
index 65ecbb7..3c62761 100755 (executable)
@@ -21296,6 +21296,7 @@ if( CheckVersion( $DBversion ) ) {
 
         $dbh->do(q|
             ALTER TABLE suggestions ADD CONSTRAINT `suggestions_ibfk_lastmodificationby` FOREIGN KEY (`lastmodificationby`) REFERENCES `borrowers` (`borrowernumber`) ON DELETE SET NULL ON UPDATE CASCADE
+            A
         |);
     }
 
@@ -21335,6 +21336,15 @@ if( CheckVersion( $DBversion ) ) {
     NewVersion( $DBversion, 23590, "Add lastmodificationby and lastmodificationdate to the suggestions table");
 }
 
+$DBversion = '19.12.00.056';
+if( CheckVersion( $DBversion ) ) {
+
+    $dbh->do( "DELETE FROM systempreferences WHERE variable='UseKohaPlugins'" );
+
+    NewVersion( $DBversion, 20415, "Remove UseKohaPlugins preference");
+}
+
+
 # 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/';