Bugzilla – Attachment 127554 Details for
Bug 27779
Cashup summary 'refunds' should denote what the refund was actioned against
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 27779: New atomic update syntax
Bug-27779-New-atomic-update-syntax.patch (text/plain), 1.68 KB, created by
Tomás Cohen Arazi (tcohen)
on 2021-11-11 18:32:40 UTC
(
hide
)
Description:
Bug 27779: New atomic update syntax
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2021-11-11 18:32:40 UTC
Size:
1.68 KB
patch
obsolete
>From f22c042f075047bc5173467b012c781b14fe48e5 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Thu, 11 Nov 2021 15:23:27 -0300 >Subject: [PATCH] Bug 27779: New atomic update syntax > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > installer/data/mysql/atomicupdate/bug_27779.perl | 8 -------- > installer/data/mysql/atomicupdate/bug_27779.pl | 15 +++++++++++++++ > 2 files changed, 15 insertions(+), 8 deletions(-) > delete mode 100644 installer/data/mysql/atomicupdate/bug_27779.perl > create mode 100755 installer/data/mysql/atomicupdate/bug_27779.pl > >diff --git a/installer/data/mysql/atomicupdate/bug_27779.perl b/installer/data/mysql/atomicupdate/bug_27779.perl >deleted file mode 100644 >index c762799800..0000000000 >--- a/installer/data/mysql/atomicupdate/bug_27779.perl >+++ /dev/null >@@ -1,8 +0,0 @@ >-$DBversion = 'XXX'; # will be replaced by the RM >-if( CheckVersion( $DBversion ) ) { >- >- # REFUND >- $dbh->do( "UPDATE account_credit_types SET description = 'Refund' WHERE code = 'REFUND'" ); >- >- NewVersion( $DBversion, 27779, "Simplify credit descriptions"); >-} >diff --git a/installer/data/mysql/atomicupdate/bug_27779.pl b/installer/data/mysql/atomicupdate/bug_27779.pl >new file mode 100755 >index 0000000000..f99c08d481 >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_27779.pl >@@ -0,0 +1,15 @@ >+use Modern::Perl; >+ >+return { >+ bug_number => "27779", >+ description => "Simplify credit descriptions", >+ up => sub { >+ my ($args) = @_; >+ my ($dbh, $out) = @$args{qw(dbh out)}; >+ >+ $dbh->do(q{ >+ UPDATE account_credit_types >+ SET description = 'Refund' WHERE code = 'REFUND' >+ }); >+ }, >+} >-- >2.33.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 27779
:
121218
|
121219
|
121224
|
121225
|
127552
|
127553
|
127554
|
130024
|
136491
|
136492
|
136493
|
136494
|
136495
|
137386
|
137387
|
137388
|
137389
|
137390
|
138809
|
138810
|
138811
|
138812
|
138813
|
138849
|
138883
|
138884