From: Marcel de Rooy Date: Mon, 11 Dec 2017 09:09:00 +0000 (+0100) Subject: Bug 19790: Add a db revision for existing installs X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=15b46699d5de79cddfcef6a5199355f95d4a6fb3;p=koha.git Bug 19790: Add a db revision for existing installs Since many installs may still have the additionalauthors kohafield, this patch adds a dbrev in atomicupdate to clear it. Test plan: [1] Run updatedatabase. Check that you see no additionalauthors anymore in marc_subfield_structure.kohafield. Signed-off-by: Marcel de Rooy Signed-off-by: Charles Farmer Signed-off-by: Katrin Fischer Signed-off-by: Jonathan Druart --- diff --git a/installer/data/mysql/atomicupdate/bug19790.perl b/installer/data/mysql/atomicupdate/bug19790.perl new file mode 100644 index 0000000000..1943d33815 --- /dev/null +++ b/installer/data/mysql/atomicupdate/bug19790.perl @@ -0,0 +1,6 @@ +$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"; +}