Bugzilla – Attachment 132840 Details for
Bug 2222
Field auth_subfield_structure.frameworkcode should NOT be removed
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 2222: Database revision
Bug-2222-Database-revision.patch (text/plain), 1.20 KB, created by
Marcel de Rooy
on 2022-04-01 10:03:01 UTC
(
hide
)
Description:
Bug 2222: Database revision
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2022-04-01 10:03:01 UTC
Size:
1.20 KB
patch
obsolete
>From 3154e99727b2ecf6ac7ccbf81a7f8f6b90309299 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Thu, 31 Mar 2022 14:13:34 +0000 >Subject: [PATCH] Bug 2222: Database revision >Content-Type: text/plain; charset=utf-8 > >Test plan: >Run updatedatabase.pl on existing data. >Check database columns. > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > installer/data/mysql/atomicupdate/bug_2222.pl | 14 ++++++++++++++ > 1 file changed, 14 insertions(+) > create mode 100755 installer/data/mysql/atomicupdate/bug_2222.pl > >diff --git a/installer/data/mysql/atomicupdate/bug_2222.pl b/installer/data/mysql/atomicupdate/bug_2222.pl >new file mode 100755 >index 0000000000..cb0a8a78aa >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_2222.pl >@@ -0,0 +1,14 @@ >+use Modern::Perl; >+ >+return { >+ bug_number => 2222, >+ description => "Remove auth_subfield_structure.frameworkcode", >+ up => sub { >+ my ($args) = @_; >+ my ($dbh, $out) = @$args{qw(dbh out)}; >+ my $sql = q|ALTER TABLE auth_subfield_structure DROP COLUMN frameworkcode|; >+ if( column_exists( 'auth_subfield_structure', 'frameworkcode' ) ) { >+ $dbh->do($sql); >+ } >+ }, >+}; >-- >2.20.1
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 2222
:
132832
|
132833
|
132834
|
132835
|
132836
|
132837
|
132838
|
132839
|
132840
|
132841