From 3f8a5a7ab3a0e5b262a8a7760ef85d7ad3c9af09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Stan=C4=9Bk?= Date: Fri, 13 Oct 2023 16:49:01 +0200 Subject: [PATCH] migration --- migrations/Version20231013144631.php | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 migrations/Version20231013144631.php diff --git a/migrations/Version20231013144631.php b/migrations/Version20231013144631.php new file mode 100644 index 000000000..7d3791fb2 --- /dev/null +++ b/migrations/Version20231013144631.php @@ -0,0 +1,26 @@ +addSql('CREATE TABLE mail_queue (id INT AUTO_INCREMENT NOT NULL, mail_id INT DEFAULT NULL, recipient_email VARCHAR(255) NOT NULL, recipient_name VARCHAR(255) DEFAULT NULL, sent TINYINT(1) NOT NULL, enqueue_datetime DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', send_datetime DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', INDEX IDX_4B3EDD0CC8776F01 (mail_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); + $this->addSql('ALTER TABLE mail_queue ADD CONSTRAINT FK_4B3EDD0CC8776F01 FOREIGN KEY (mail_id) REFERENCES mail (id)'); + } + + public function down(Schema $schema): void + { + } +}