Bugzilla – Attachment 127739 Details for
Bug 29457
Fee Cancellation records the wrong manager_id
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29457: Database update
Bug-29457-Database-update.patch (text/plain), 1.06 KB, created by
Martin Renvoize (ashimema)
on 2021-11-17 16:50:01 UTC
(
hide
)
Description:
Bug 29457: Database update
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2021-11-17 16:50:01 UTC
Size:
1.06 KB
patch
obsolete
>From d9e0387080cd42e78454b3333a5e23132eafbde0 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Wed, 17 Nov 2021 16:49:27 +0000 >Subject: [PATCH] Bug 29457: Database update > >--- > installer/data/mysql/atomicupdate/bug_29457.pl | 13 +++++++++++++ > 1 file changed, 13 insertions(+) > create mode 100644 installer/data/mysql/atomicupdate/bug_29457.pl > >diff --git a/installer/data/mysql/atomicupdate/bug_29457.pl b/installer/data/mysql/atomicupdate/bug_29457.pl >new file mode 100644 >index 0000000000..f5589a6934 >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_29457.pl >@@ -0,0 +1,13 @@ >+use Modern::Perl; >+ >+return { >+ bug_number => "29457", >+ description => "Fix manager_id for historical account cancellations", >+ up => sub { >+ my ($args) = @_; >+ my ($dbh, $out) = @$args{qw(dbh out)}; >+ $dbh->do(q{ >+ UPDATE accountlines SET manager_id = ( SELECT borrowernumber FROM borrowers WHERE borrowers.userid = accountlines.manager_id ) WHERE credit_type_code = 'CANCELLATION'; >+ }); >+ }, >+} >-- >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 29457
:
127527
|
127596
|
127739
|
128024
|
128025
|
128030
|
128031
|
128032
|
128207
|
128208
|
128649
|
128650
|
128651