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 <m.de.rooy@rijksmuseum.nl> Signed-off-by: Charles Farmer <charles.farmer@inLibro.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
25c5f3968f
commit
15b46699d5
1 changed files with 6 additions and 0 deletions
6
installer/data/mysql/atomicupdate/bug19790.perl
Normal file
6
installer/data/mysql/atomicupdate/bug19790.perl
Normal file
|
@ -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";
|
||||
}
|
Loading…
Reference in a new issue