From 3710f34f1b3ec73e44824ead8fb16a2c9e81c072 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.12.00.014 Signed-off-by: Jonathan Druart --- 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 6110a96573..e549ba9b26 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.12.00.013"; +$VERSION = "20.12.00.014"; 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 1c5c24a653..c67f591d4a 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -23522,6 +23522,15 @@ if( CheckVersion( $DBversion ) ) { NewVersion( $DBversion, 24108, "Add system preference DefaultSaveRecordFileID"); } +$DBversion = '20.12.00.014'; +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