From 1d08b9fdc9abfa57bf3916545cd62ffbeced6530 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Thu, 6 Aug 2020 20:28:34 +0000 Subject: [PATCH] Bug 22660: DBrev 20.05.02.009 Signed-off-by: Lucas Gass --- Koha.pm | 2 +- .../bug_22660_add_NewsToolEditor_system_preference.perl | 6 ------ installer/data/mysql/updatedatabase.pl | 7 +++++++ 3 files changed, 8 insertions(+), 7 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_22660_add_NewsToolEditor_system_preference.perl diff --git a/Koha.pm b/Koha.pm index dd5acde375..4fed7a6b30 100644 --- 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 = "20.05.02.008"; +$VERSION = "20.05.02.009"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_22660_add_NewsToolEditor_system_preference.perl b/installer/data/mysql/atomicupdate/bug_22660_add_NewsToolEditor_system_preference.perl deleted file mode 100644 index 88e141612d..0000000000 --- a/installer/data/mysql/atomicupdate/bug_22660_add_NewsToolEditor_system_preference.perl +++ /dev/null @@ -1,6 +0,0 @@ -$DBversion = 'XXX'; # will be replaced by the RM -if( CheckVersion( $DBversion ) ) { - $dbh->do( "INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES('NewsToolEditor','tinymce', 'Choose tool for editing News','tinymce|codemirror','Choice')" ); - - NewVersion( $DBversion, 22660, "Adds NewsToolEditor system preference"); -} diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index a1093deb55..fbf1fe9cc1 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -22362,6 +22362,13 @@ if( CheckVersion( $DBversion ) ) { NewVersion( $DBversion, 25709, "Rename systempreference to NotesToHide"); } +$DBversion = '20.05.02.009'; +if( CheckVersion( $DBversion ) ) { + $dbh->do( "INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES('NewsToolEditor','tinymce', 'Choose tool for editing News','tinymce|codemirror','Choice')" ); + + NewVersion( $DBversion, 22660, "Adds NewsToolEditor system 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/'; -- 2.39.5