Bugzilla – Attachment 166219 Details for
Bug 25159
Action logs should be stored in JSON (and as a diff of the change)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 25159: (QA follow-up) Make dbrev idempotent
Bug-25159-QA-follow-up-Make-dbrev-idempotent.patch (text/plain), 1.05 KB, created by
Tomás Cohen Arazi (tcohen)
on 2024-05-06 12:36:34 UTC
(
hide
)
Description:
Bug 25159: (QA follow-up) Make dbrev idempotent
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2024-05-06 12:36:34 UTC
Size:
1.05 KB
patch
obsolete
>From efe82257383e40f3f02fc2d2678179011e7144cd Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Mon, 6 May 2024 09:35:59 -0300 >Subject: [PATCH] Bug 25159: (QA follow-up) Make dbrev idempotent > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > installer/data/mysql/db_revs/231200043.pl | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > >diff --git a/installer/data/mysql/db_revs/231200043.pl b/installer/data/mysql/db_revs/231200043.pl >index 944f2e30418..315b9975c92 100755 >--- a/installer/data/mysql/db_revs/231200043.pl >+++ b/installer/data/mysql/db_revs/231200043.pl >@@ -7,7 +7,10 @@ return { > my ($args) = @_; > my ( $dbh, $out ) = @$args{qw(dbh out)}; > >- $dbh->do(q{ALTER TABLE action_logs ADD COLUMN diff LONGTEXT NULL DEFAULT NULL AFTER trace;}); >+ unless ( column_exists( 'action_logs', 'diff' ) ) { >+ $dbh->do(q{ALTER TABLE action_logs ADD COLUMN diff LONGTEXT NULL DEFAULT NULL AFTER trace;}); >+ } >+ > say $out "Added column 'action_logs.diff'"; > }, > }; >-- >2.45.0
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 25159
:
153600
|
153601
|
153602
|
153603
|
153604
|
153606
|
153607
|
153608
|
153609
|
153611
|
153612
|
153613
|
153614
|
153637
|
153643
|
153644
|
153645
|
153646
|
159758
|
164597
|
164598
|
164599
|
164600
|
164601
|
165527
|
165528
|
165529
|
165530
|
165531
|
165532
| 166219