Koha/installer/data/mysql/db_revs/221200002.pl
Kyle M Hall f9002b96cd
Bug 27424: (QA follow-up) Make db update idempotent
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-06-09 08:28:52 -03:00

13 lines
421 B
Perl
Executable file

use Modern::Perl;
return {
bug_number => "27424",
description => "Add column to specify an SMTP server as the default",
up => sub {
my ($args) = @_;
my ($dbh, $out) = @$args{qw(dbh out)};
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});
}
},
};