From 1c5633b0ea1e6393d9f31e990d97c6c75f65899a Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 12 Feb 2018 17:55:00 -0300 Subject: [PATCH] Bug 19790: DBRev 17.12.00.014 Signed-off-by: Jonathan Druart --- Koha.pm | 2 +- installer/data/mysql/atomicupdate/bug19790.perl | 6 ------ installer/data/mysql/updatedatabase.pl | 7 +++++++ 3 files changed, 8 insertions(+), 7 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug19790.perl diff --git a/Koha.pm b/Koha.pm index f35ca57bd9..2adaabdd1d 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 = "17.12.00.013"; +$VERSION = "17.12.00.014"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug19790.perl b/installer/data/mysql/atomicupdate/bug19790.perl deleted file mode 100644 index 1943d33815..0000000000 --- a/installer/data/mysql/atomicupdate/bug19790.perl +++ /dev/null @@ -1,6 +0,0 @@ -$DBversion = 'XXX'; # will be replaced by the RM -if( CheckVersion( $DBversion ) ) { - $dbh->do( "UPDATE marc_subfield_structure SET kohafield=NULL where kohafield='additionalauthors.author'" ); - SetVersion( $DBversion ); - print "Upgrade to $DBversion done (Bug 19790 - Remove additionalauthors.author from installer files)\n"; -} diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index b6a22e613d..b714dc5e3c 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -15347,6 +15347,13 @@ if( CheckVersion( $DBversion ) ) { print "Upgrade to $DBversion done (Bug 20175 - Set DEFAULT NULL value for club_enrollments.date_created)\n"; } +$DBversion = '17.12.00.014'; +if( CheckVersion( $DBversion ) ) { + $dbh->do( "UPDATE marc_subfield_structure SET kohafield=NULL where kohafield='additionalauthors.author'" ); + SetVersion( $DBversion ); + print "Upgrade to $DBversion done (Bug 19790 - Remove additionalauthors.author from installer files)\n"; +} + # DEVELOPER PROCESS, search for anything to execute in the db_update directory # SEE bug 13068 # if there is anything in the atomicupdate, read and execute it. -- 2.39.5