From 993bb1e1173627dc865b802522322b813336468d Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 1 Mar 2021 10:27:20 +0000 Subject: [PATCH] Bug 7806: DBRev 20.11.03.002 Signed-off-by: Jonathan Druart (cherry picked from commit 3710f34f1b3ec73e44824ead8fb16a2c9e81c072) Signed-off-by: Fridolin Somers --- Koha.pm | 2 +- installer/data/mysql/atomicupdate/bug_7806.perl | 8 -------- installer/data/mysql/updatedatabase.pl | 9 +++++++++ 3 files changed, 10 insertions(+), 9 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_7806.perl diff --git a/Koha.pm b/Koha.pm index ac26ec9418..16761f378c 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.11.03.001"; +$VERSION = "20.11.03.002"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_7806.perl b/installer/data/mysql/atomicupdate/bug_7806.perl deleted file mode 100644 index c027d2f2a1..0000000000 --- a/installer/data/mysql/atomicupdate/bug_7806.perl +++ /dev/null @@ -1,8 +0,0 @@ -$DBversion = 'XXX'; # will be replaced by the RM -if( CheckVersion( $DBversion ) ) { - - sanitize_zero_date('aqorders', 'datecancellationprinted'); - sanitize_zero_date('old_issues', 'returndate'); - - NewVersion( $DBversion, 7806, "Remove remaining possible 0000-00-00 values"); -} diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index ffd967963e..40044e122e 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -23468,6 +23468,15 @@ if ( CheckVersion($DBversion) ) { NewVersion( $DBversion, 18506, "Add OPACShibOnly and staffShibOnly system preferences" ); } +$DBversion = '20.11.03.002'; +if( CheckVersion( $DBversion ) ) { + + sanitize_zero_date('aqorders', 'datecancellationprinted'); + sanitize_zero_date('old_issues', 'returndate'); + + NewVersion( $DBversion, 7806, "Remove remaining possible 0000-00-00 values"); +} + # 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