From fc0f5ca76714797348b5d9f11dc500d11712604b Mon Sep 17 00:00:00 2001 From: Ferdinand Kuhl Date: Mon, 5 May 2014 10:09:19 +0200 Subject: [PATCH] adding migration --- Migrations/Mysql/Version20140505093853.php | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 Migrations/Mysql/Version20140505093853.php diff --git a/Migrations/Mysql/Version20140505093853.php b/Migrations/Mysql/Version20140505093853.php new file mode 100644 index 0000000..0e97b80 --- /dev/null +++ b/Migrations/Mysql/Version20140505093853.php @@ -0,0 +1,33 @@ +abortIf($this->connection->getDatabasePlatform()->getName() != "mysql"); + + $this->addSql("CREATE TABLE digicomp_sequence_domain_model_insert (number INT NOT NULL, type VARCHAR(255) NOT NULL, PRIMARY KEY(number, type)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB"); + } + + /** + * @param Schema $schema + * @return void + */ + public function down(Schema $schema) { + // this down() migration is autogenerated, please modify it to your needs + $this->abortIf($this->connection->getDatabasePlatform()->getName() != "mysql"); + + $this->addSql("DROP TABLE digicomp_sequence_domain_model_insert"); + } +} \ No newline at end of file