Koha/installer/data/mysql/db_revs/221200002.pl
Kyle M Hall f4f57550bc
Bug 27424: (QA follow-up) Make db update idempotent
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit f9002b96cd)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2023-07-12 07:58:36 +01: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});
}
},
};