From 095f39b2e41e4867630d29446f87bcc8bc34dda7 Mon Sep 17 00:00:00 2001 From: Jan Goralski Date: Tue, 15 Nov 2016 13:34:21 +0100 Subject: [PATCH] [Mailer] Added missing migration --- app/migrations/Version20161115123347.php | 34 ++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 app/migrations/Version20161115123347.php diff --git a/app/migrations/Version20161115123347.php b/app/migrations/Version20161115123347.php new file mode 100644 index 0000000000..aeb35638b8 --- /dev/null +++ b/app/migrations/Version20161115123347.php @@ -0,0 +1,34 @@ +abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on \'mysql\'.'); + + $this->addSql('DROP TABLE sylius_email'); + } + + /** + * @param Schema $schema + */ + public function down(Schema $schema) + { + // this down() migration is auto-generated, please modify it to your needs + $this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on \'mysql\'.'); + + $this->addSql('CREATE TABLE sylius_email (id INT AUTO_INCREMENT NOT NULL, code VARCHAR(255) NOT NULL COLLATE utf8_unicode_ci, template VARCHAR(255) DEFAULT NULL COLLATE utf8_unicode_ci, enabled TINYINT(1) NOT NULL, subject VARCHAR(255) NOT NULL COLLATE utf8_unicode_ci, sender_name VARCHAR(255) DEFAULT NULL COLLATE utf8_unicode_ci, sender_address VARCHAR(255) DEFAULT NULL COLLATE utf8_unicode_ci, content LONGTEXT DEFAULT NULL COLLATE utf8_unicode_ci, created_at DATETIME NOT NULL, updated_at DATETIME DEFAULT NULL, UNIQUE INDEX UNIQ_732D4E1577153098 (code), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB'); + } +}