Bugzilla – Attachment 178860 Details for
Bug 32630
Don't delete ILL requests when patron is deleted
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 32630: atomicupdate
Bug-32630-atomicupdate.patch (text/plain), 1.50 KB, created by
Pedro Amorim
on 2025-02-28 15:53:00 UTC
(
hide
)
Description:
Bug 32630: atomicupdate
Filename:
MIME Type:
Creator:
Pedro Amorim
Created:
2025-02-28 15:53:00 UTC
Size:
1.50 KB
patch
obsolete
>From 27ca982a036b8dd1e64ccd3829e5db16a0fa11e0 Mon Sep 17 00:00:00 2001 >From: Pedro Amorim <pedro.amorim@ptfs-europe.com> >Date: Thu, 20 Feb 2025 11:50:03 +0000 >Subject: [PATCH] Bug 32630: atomicupdate > >Sponsored-by: UKHSA - UK Health Security Agency >Signed-off-by: Jeremy Evans <Jeremy.Evans@ukhsa.gov.uk> >--- > .../data/mysql/atomicupdate/bug_32630.pl | 24 +++++++++++++++++++ > 1 file changed, 24 insertions(+) > create mode 100755 installer/data/mysql/atomicupdate/bug_32630.pl > >diff --git a/installer/data/mysql/atomicupdate/bug_32630.pl b/installer/data/mysql/atomicupdate/bug_32630.pl >new file mode 100755 >index 00000000000..2f543cfb5a2 >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_32630.pl >@@ -0,0 +1,24 @@ >+use Modern::Perl; >+use Koha::Installer::Output qw(say_warning say_success say_info); >+ >+return { >+ bug_number => "32630", >+ description => "Don't delete illrequests when borrower is deleted", >+ up => sub { >+ my ($args) = @_; >+ my ( $dbh, $out ) = @$args{qw(dbh out)}; >+ >+ $dbh->do(q{ ALTER TABLE illrequests DROP FOREIGN KEY illrequests_bnfk }); >+ $dbh->do( >+ q{ >+ ALTER TABLE illrequests ADD CONSTRAINT illrequests_bnfk >+ FOREIGN KEY(`borrowernumber`) >+ REFERENCES `borrowers` (`borrowernumber`) >+ ON DELETE SET NULL ON UPDATE CASCADE; >+ } >+ ); >+ >+ # Other information >+ say_success( $out, "Updated borrowernumber constraint" ); >+ }, >+}; >-- >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 32630
:
178387
|
178388
|
178389
|
178390
|
178391
|
178392
|
178393
|
178858
|
178859
|
178860
|
178861
|
178862
|
178863
|
178864
|
178876
|
178877
|
178878
|
178879
|
178880
|
178881
|
178882
|
178883