From 8a278db2edeb6797c30e3713a2ec2e52692627c8 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Tue, 23 Jul 2019 00:06:45 +0000 Subject: [PATCH] Bug 23151: DBRev 18.11.07.001 Signed-off-by: Lucas Gass --- Koha.pm | 2 +- installer/data/mysql/updatedatabase.pl | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Koha.pm b/Koha.pm index 7752a22f7b..ba5c2dfa19 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 = "18.11.07.000"; +$VERSION = "18.11.07.001"; sub version { return $VERSION; diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index c497d75b90..675f692dd0 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -17504,6 +17504,15 @@ if ( CheckVersion($DBversion) ) { SetVersion ($DBversion); } +$DBversion = '18.11.07.001'; +if ( CheckVersion( $DBversion ) ) { + unless ( column_exists( 'borrower_modifications', 'changed_fields' ) ) { + $dbh->do("ALTER TABLE borrower_modifications ADD changed_fields MEDIUMTEXT AFTER verification_token;"); + } + SetVersion( $DBversion ); + print "Upgrade to $DBversion done (Bug 23151 - Add borrower_modifications.changed_fields column)\n"; +} + # SEE bug 13068 # if there is anything in the atomicupdate, read and execute it. -- 2.39.5