Bugzilla – Attachment 152192 Details for
Bug 27424
One should be able to assign an SMTP server as the default
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 27424: (QA follow-up) Make db update idempotent
Bug-27424-QA-follow-up-Make-db-update-idempotent.patch (text/plain), 1009 bytes, created by
Kyle M Hall (khall)
on 2023-06-08 13:45:32 UTC
(
hide
)
Description:
Bug 27424: (QA follow-up) Make db update idempotent
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2023-06-08 13:45:32 UTC
Size:
1009 bytes
patch
obsolete
>From 26b035811254da9297472fb57b89a075197c04ea Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Thu, 8 Jun 2023 09:45:18 -0400 >Subject: [PATCH] Bug 27424: (QA follow-up) Make db update idempotent > >--- > installer/data/mysql/db_revs/221200002.pl | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > >diff --git a/installer/data/mysql/db_revs/221200002.pl b/installer/data/mysql/db_revs/221200002.pl >index 07d4ac56e6..86ed85db9f 100755 >--- a/installer/data/mysql/db_revs/221200002.pl >+++ b/installer/data/mysql/db_revs/221200002.pl >@@ -6,6 +6,8 @@ return { > up => sub { > my ($args) = @_; > my ($dbh, $out) = @$args{qw(dbh out)}; >- $dbh->do(q{ALTER TABLE smtp_servers ADD COLUMN `is_default` tinyint(1) NOT NULL DEFAULT 0 AFTER debug}); >+ unless ( column_exists( 'smtp_servers', 'is_default' ) ) { >+ $dbh->do(q{ALTER TABLE smtp_servers ADD COLUMN `is_default` tinyint(1) NOT NULL DEFAULT 0 AFTER debug}); >+ } > }, > }; >-- >2.30.2
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 27424
:
129673
|
129674
|
129675
|
129814
|
130168
|
130169
|
130170
|
130171
|
130172
|
130300
|
130301
|
130302
|
130303
|
130304
|
145697
|
145698
|
145699
|
145700
|
145701
|
145702
|
145705
|
145723
|
145724
|
145725
| 152192