Bugzilla – Attachment 180671 Details for
Bug 38922
auth_header.origincode and auth_header.linkid never used -- shouldn't it be removed?
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 38922: Remove auth_header.origincode, auth_heder.linkid, deletedauth_header.origincode, deletedauth_header.linkid and auth_subfield_structure.linkid from existing installations
Bug-38922-Remove-authheaderorigincode-authhederlin.patch (text/plain), 1.82 KB, created by
Janusz Kaczmarek
on 2025-04-04 19:03:50 UTC
(
hide
)
Description:
Bug 38922: Remove auth_header.origincode, auth_heder.linkid, deletedauth_header.origincode, deletedauth_header.linkid and auth_subfield_structure.linkid from existing installations
Filename:
MIME Type:
Creator:
Janusz Kaczmarek
Created:
2025-04-04 19:03:50 UTC
Size:
1.82 KB
patch
obsolete
>From 5ff8f89474581cd46fd20f02aa0775c1b72fe227 Mon Sep 17 00:00:00 2001 >From: Janusz Kaczmarek <januszop@gmail.com> >Date: Fri, 4 Apr 2025 15:57:28 +0000 >Subject: [PATCH] Bug 38922: Remove auth_header.origincode, auth_heder.linkid, > deletedauth_header.origincode, deletedauth_header.linkid and > auth_subfield_structure.linkid from existing installations > >--- > .../bug_38922-clenup-auth_header.pl | 32 +++++++++++++++++++ > 1 file changed, 32 insertions(+) > create mode 100755 installer/data/mysql/atomicupdate/bug_38922-clenup-auth_header.pl > >diff --git a/installer/data/mysql/atomicupdate/bug_38922-clenup-auth_header.pl b/installer/data/mysql/atomicupdate/bug_38922-clenup-auth_header.pl >new file mode 100755 >index 0000000000..ba0862e185 >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_38922-clenup-auth_header.pl >@@ -0,0 +1,32 @@ >+use Modern::Perl; >+use Koha::Installer::Output qw(say_warning say_success say_info); >+ >+return { >+ bug_number => "38922", >+ description => >+ "Remove auth_header.origincode, auth_heder.linkid, deletedauth_header.origincode, deletedauth_header.linkid and auth_subfield_structure.linkid", >+ up => sub { >+ my ($args) = @_; >+ my ( $dbh, $out ) = @$args{qw(dbh out)}; >+ >+ $dbh->do( >+ q{ >+ ALTER TABLE auth_header DROP COLUMN origincode, DROP COLUMN linkid >+ } >+ ); >+ $dbh->do( >+ q{ >+ ALTER TABLE deletedauth_header DROP COLUMN origincode, DROP COLUMN linkid >+ } >+ ); >+ $dbh->do( >+ q{ >+ ALTER TABLE auth_subfield_structure DROP COLUMN linkid >+ } >+ ); >+ >+ say $out >+ "Dropped columns 'auth_header.origincode', 'auth_heder.linkid', 'deletedauth_header.origincode', 'deletedauth_header.linkid' and 'auth_subfield_structure.linkid'"; >+ >+ }, >+}; >-- >2.39.5
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 38922
:
180671
|
180672
|
180673
|
180674
|
180677
|
180678
|
180679
|
180680