From f5f1c795930ddd63fc908b2c56a6dbc3ca99606c Mon Sep 17 00:00:00 2001 From: Andreas Schempp Date: Tue, 3 Dec 2024 16:05:45 +0100 Subject: [PATCH] Make sure mailerTransport can be NULL (#383) --- src/Migration/MailerTransportMigration.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Migration/MailerTransportMigration.php b/src/Migration/MailerTransportMigration.php index 786b29d..be5efd4 100644 --- a/src/Migration/MailerTransportMigration.php +++ b/src/Migration/MailerTransportMigration.php @@ -33,6 +33,7 @@ public function shouldRun(): bool public function run(): MigrationResult { + $this->connection->executeStatement("ALTER TABLE tl_nc_gateway CHANGE mailerTransport mailerTransport varchar(64) DEFAULT NULL"); $this->connection->executeStatement("UPDATE tl_nc_gateway SET mailerTransport = NULL WHERE mailerTransport = ''"); return $this->createResult(true);