Bugzilla – Attachment 88220 Details for
Bug 22564
accounttype 'Rep' is still referred to but is never set
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22564: Add database update 'just in case'
Bug-22564-Add-database-update-just-in-case.patch (text/plain), 1.34 KB, created by
Martin Renvoize (ashimema)
on 2019-04-17 18:10:35 UTC
(
hide
)
Description:
Bug 22564: Add database update 'just in case'
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2019-04-17 18:10:35 UTC
Size:
1.34 KB
patch
obsolete
>From deea88f59c90d40dee18998cb97454f2f44a10dc Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Fri, 29 Mar 2019 12:20:26 +0000 >Subject: [PATCH] Bug 22564: Add database update 'just in case' > >With the introduction of the 'status' field it's a clear oportunity to >convert any last remaining instances of 'Rep' to 'L' + 'REPLACED'. > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Signed-off-by: Josef Moravec <josef.moravec@gmail.com> >--- > .../data/mysql/atomicupdate/bug_22564.perl | 17 +++++++++++++++++ > 1 file changed, 17 insertions(+) > create mode 100644 installer/data/mysql/atomicupdate/bug_22564.perl > >diff --git a/installer/data/mysql/atomicupdate/bug_22564.perl b/installer/data/mysql/atomicupdate/bug_22564.perl >new file mode 100644 >index 0000000000..0407ac8401 >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_22564.perl >@@ -0,0 +1,17 @@ >+$DBversion = 'XXX'; # will be replaced by the RM >+if ( CheckVersion($DBversion) ) { >+ >+ my $rows = $dbh->do( >+ qq{ >+ UPDATE `accountlines` >+ SET >+ `accounttype` = 'L', >+ `status` = 'REPLACED' >+ WHERE >+ `accounttype` = 'Rep' >+ } >+ ); >+ >+ SetVersion($DBversion); >+ printf "Upgrade to $DBversion done (Bug 22564 - Fix accounttype 'O' to 'FU' - %d updated)\n", $rows; >+} >-- >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 22564
:
86922
|
87052
|
87194
|
87195
|
87205
|
87206
|
87207
|
87629
|
87630
|
87631
|
87793
|
87794
|
87795
|
87866
|
87867
|
87868
|
88219
|
88220
|
88221
|
88342
|
88343
|
88344
|
88345