Skip to content

Commit

Permalink
Make sure mailerTransport can be NULL (#383)
Browse files Browse the repository at this point in the history
  • Loading branch information
aschempp authored Dec 3, 2024
1 parent e9b1f92 commit f5f1c79
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Migration/MailerTransportMigration.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f5f1c79

Please sign in to comment.