abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.'); $this->addSql('ALTER TABLE plan ADD is_default TINYINT(1) NOT NULL'); $this->addSql('ALTER TABLE notifications CHANGE timezone timezone VARCHAR(255) NOT NULL COMMENT \'(DC2Type:datetimezone)\', CHANGE notification_type notification_type VARCHAR(255) NOT NULL COMMENT \'(DC2Type:notification_type)\', CHANGE theme_type theme_type VARCHAR(255) NOT NULL COMMENT \'(DC2Type:theme_type)\''); } /** * @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('ALTER TABLE notifications CHANGE notification_type notification_type VARCHAR(255) NOT NULL COLLATE utf8_unicode_ci, CHANGE theme_type theme_type VARCHAR(255) NOT NULL COLLATE utf8_unicode_ci, CHANGE timezone timezone VARCHAR(255) NOT NULL COLLATE utf8_unicode_ci'); $this->addSql('ALTER TABLE plan DROP is_default'); } }