Bugzilla – Attachment 71927 Details for
Bug 20074
Auth_subfield_structure changes hidden attribute
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20074: Database revision to convert hidden to -5
Bug-20074-Database-revision-to-convert-hidden-to--.patch (text/plain), 1.33 KB, created by
Josef Moravec
on 2018-02-19 09:41:28 UTC
(
hide
)
Description:
Bug 20074: Database revision to convert hidden to -5
Filename:
MIME Type:
Creator:
Josef Moravec
Created:
2018-02-19 09:41:28 UTC
Size:
1.33 KB
patch
obsolete
>From 8bdf870e55b9566668d1aecffc439d11d4f67719 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Tue, 23 Jan 2018 15:21:27 +0100 >Subject: [PATCH] Bug 20074: Database revision to convert hidden to -5 > >The hidden value is used as a boolean in authority frameworks (in contrast >with biblio framework). >It is consistent to apply the same value (-5) to all non-zero values. > >Test plan: >Check if you a have 0, 1 and 8 value in hidden somewhere. >Run the dbrev. >Verify that 1 and 8 are converted to -5. > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> > >Signed-off-by: Josef Moravec <josef.moravec@gmail.com> >--- > installer/data/mysql/atomicupdate/bug20074.perl | 6 ++++++ > 1 file changed, 6 insertions(+) > create mode 100644 installer/data/mysql/atomicupdate/bug20074.perl > >diff --git a/installer/data/mysql/atomicupdate/bug20074.perl b/installer/data/mysql/atomicupdate/bug20074.perl >new file mode 100644 >index 0000000..4d2034b >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug20074.perl >@@ -0,0 +1,6 @@ >+$DBversion = 'XXX'; # will be replaced by the RM >+if( CheckVersion( $DBversion ) ) { >+ $dbh->do(q|UPDATE auth_subfield_structure SET hidden=-5 WHERE hidden<>0|); >+ SetVersion( $DBversion ); >+ print "Upgrade to $DBversion done (Bug 20074: Auth_subfield_structure changes hidden attribute)\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 20074
:
70842
|
70843
|
70847
|
71926
|
71927
|
71928
|
72191
|
72192
|
72193
|
72209
|
128400