Bug 27424: Update database
authorKyle Hall <kyle@bywatersolutions.com>
Tue, 25 Jan 2022 19:06:41 +0000 (14:06 -0500)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 31 Jan 2023 13:52:48 +0000 (10:52 -0300)
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
installer/data/mysql/atomicupdate/bug_27424.pl [new file with mode: 0755]

diff --git a/installer/data/mysql/atomicupdate/bug_27424.pl b/installer/data/mysql/atomicupdate/bug_27424.pl
new file mode 100755 (executable)
index 0000000..07d4ac5
--- /dev/null
@@ -0,0 +1,11 @@
+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)};
+        $dbh->do(q{ALTER TABLE smtp_servers ADD COLUMN `is_default` tinyint(1) NOT NULL DEFAULT 0 AFTER debug});
+    },
+};