abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.'); $this->addSql(' ALTER TABLE queries CHANGE unique_name normalized LONGTEXT NOT NULL COLLATE utf8_unicode_ci, CHANGE string raw LONGTEXT NOT NULL COLLATE utf8_unicode_ci '); } /** * @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 queries CHANGE raw string LONGTEXT NOT NULL COLLATE utf8_unicode_ci, CHANGE normalized unique_name VARCHAR(255) NOT NULL COLLATE utf8_unicode_ci '); } }