abortIf($this->connection->getDatabasePlatform()->getName() != "mysql"); $this->addSql("ALTER TABLE events ADD start_date DATE NOT NULL, ADD end_date DATE DEFAULT NULL, DROP start_time, DROP end_time"); } 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("ALTER TABLE events ADD start_time DATETIME NOT NULL, ADD end_time DATETIME DEFAULT NULL, DROP start_date, DROP end_date"); } }