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.