Bug 27424: (QA follow-up) Make db update idempotent
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
b10b840577
commit
f9002b96cd
1 changed files with 3 additions and 1 deletions
|
@ -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});
|
||||
}
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue