From 5c44fa7d50665b70a54d76936da7adfbb78874d4 Mon Sep 17 00:00:00 2001 From: Joy Nelson Date: Tue, 5 May 2020 23:04:53 +0000 Subject: [PATCH] Bug 25086: DBRev 19.11.05.003 Signed-off-by: Joy Nelson --- Koha.pm | 2 +- installer/data/mysql/atomicupdate/bug_25086.perl | 9 --------- installer/data/mysql/updatedatabase.pl | 7 +++++++ 3 files changed, 8 insertions(+), 10 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_25086.perl diff --git a/Koha.pm b/Koha.pm index 5f0115f47d..8111089653 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 = "19.11.05.002"; +$VERSION = "19.11.05.003"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_25086.perl b/installer/data/mysql/atomicupdate/bug_25086.perl deleted file mode 100644 index 183408e6d4..0000000000 --- a/installer/data/mysql/atomicupdate/bug_25086.perl +++ /dev/null @@ -1,9 +0,0 @@ -$DBversion = 'XXX'; # will be replaced by the RM -if( CheckVersion( $DBversion ) ) { - # you can use $dbh here like: - - $dbh->do( "ALTER TABLE borrower_modifications MODIFY changed_fields MEDIUMTEXT DEFAULT NULL" ); - - # Always end with this (adjust the bug info) - NewVersion( $DBversion, 25086, "Set changed_fields column of borrower_modifications as nullable"); -} diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 1d2c9189d4..eb79de8baa 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -20494,6 +20494,13 @@ if( CheckVersion( $DBversion ) ) { print "Upgrade to $DBversion done (Bug 20754: Remove double accepted list shares)\n"; } +$DBversion = '19.11.05.003'; +if( CheckVersion( $DBversion ) ) { + $dbh->do( "ALTER TABLE borrower_modifications MODIFY changed_fields MEDIUMTEXT DEFAULT NULL" ); + SetVersion( $DBversion ); + print "Upgrade to $DBversion done (Bug 25086: Set changed_fields column of borrower_modifications as nullable)\n"; +} + # 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