Bugzilla – Attachment 85271 Details for
Bug 3820
More detailed patron record changes log
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 3820: (follow-up) Update cardnumber logs match the new format
Bug-3820-follow-up-Update-cardnumber-logs-match-th.patch (text/plain), 1.40 KB, created by
Martin Renvoize (ashimema)
on 2019-02-19 12:40:39 UTC
(
hide
)
Description:
Bug 3820: (follow-up) Update cardnumber logs match the new format
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2019-02-19 12:40:39 UTC
Size:
1.40 KB
patch
obsolete
>From b2b66a8a1fba2ed05d4a702c5fdd71f093655cda Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Mon, 18 Feb 2019 13:33:12 +0000 >Subject: [PATCH] Bug 3820: (follow-up) Update cardnumber logs match the new > format > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Signed-off-by: Josef Moravec <josef.moravec@gmail.com> >--- > installer/data/mysql/atomicupdate/bug_3820.perl | 9 +++++++++ > 1 file changed, 9 insertions(+) > create mode 100644 installer/data/mysql/atomicupdate/bug_3820.perl > >diff --git a/installer/data/mysql/atomicupdate/bug_3820.perl b/installer/data/mysql/atomicupdate/bug_3820.perl >new file mode 100644 >index 0000000000..7ce68db948 >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_3820.perl >@@ -0,0 +1,9 @@ >+$DBversion = 'XXX'; # will be replaced by the RM >+if( CheckVersion( $DBversion ) ) { >+ $dbh->do( "UPDATE action_logs SET info = REGEXP_REPLACE(info,'cardnumber_replaced','cardnumber') WHERE module='MEMBERS' AND action='MODIFY'" ); >+ $dbh->do( "UPDATE action_logs SET info = REGEXP_REPLACE(info,'previous_cardnumber','before') WHERE module='MEMBERS' AND action='MODIFY'" ); >+ $dbh->do( "UPDATE action_logs SET info = REGEXP_REPLACE(info,'new_cardnumber','after') WHERE module='MEMBERS' AND action='MODIFY'" ); >+ >+ SetVersion( $DBversion ); >+ print "Upgrade to $DBversion done (Bug 3820 - Update patron modification logs)\n"; >+} >-- >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 3820
:
1584
|
1585
|
85100
|
85102
|
85103
|
85104
|
85161
|
85162
|
85196
|
85197
|
85243
|
85244
|
85245
|
85246
|
85256
|
85257
|
85258
|
85259
|
85260
|
85269
|
85270
| 85271 |
85272
|
85273
|
85274
|
85276
|
85277