abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.'); $this->addSql('ALTER TABLE documents DROP bucket, DROP resource, DROP source_date_found, DROP source_last_published, DROP source_last_posted'); } /** * @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 documents ADD bucket BIGINT DEFAULT NULL, ADD resource LONGTEXT DEFAULT NULL COLLATE utf8_unicode_ci, ADD source_date_found DATETIME DEFAULT NULL, ADD source_last_published DATETIME DEFAULT NULL, ADD source_last_posted DATETIME DEFAULT NULL'); } }