Bugzilla – Attachment 71407 Details for
Bug 19790
Remove additionalauthors.author from installer files
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19790: Add a db revision for existing installs
Bug-19790-Add-a-db-revision-for-existing-installs.patch (text/plain), 1.37 KB, created by
Katrin Fischer
on 2018-02-11 15:43:43 UTC
(
hide
)
Description:
Bug 19790: Add a db revision for existing installs
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2018-02-11 15:43:43 UTC
Size:
1.37 KB
patch
obsolete
>From e356e0b559375b2f6130d09451789bff3caf0f95 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Mon, 11 Dec 2017 10:09:00 +0100 >Subject: [PATCH] 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> >--- > installer/data/mysql/atomicupdate/bug19790.perl | 6 ++++++ > 1 file changed, 6 insertions(+) > create mode 100644 installer/data/mysql/atomicupdate/bug19790.perl > >diff --git a/installer/data/mysql/atomicupdate/bug19790.perl b/installer/data/mysql/atomicupdate/bug19790.perl >new file mode 100644 >index 0000000..1943d33 >--- /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"; >+} >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 19790
:
69677
|
69678
|
69679
|
69680
|
71402
|
71403
|
71406
| 71407