abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.'); $this->addSql('ALTER TABLE plan ADD web_feeds INT NOT NULL'); $this->addSql('ALTER TABLE subscriptions ADD web_feeds INT NOT NULL'); } /** * @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 plan DROP web_feeds'); $this->addSql('ALTER TABLE subscriptions DROP web_feeds'); } }