abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.'); $this->addSql('ALTER TABLE subscriptions ADD searches_per_day INT NOT NULL, ADD saved_feeds INT NOT NULL, ADD master_accounts INT NOT NULL, ADD subscriber_accounts INT NOT NULL, ADD alerts INT NOT NULL, ADD newsletters 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 subscriptions DROP searches_per_day, DROP saved_feeds, DROP master_accounts, DROP subscriber_accounts, DROP alerts, DROP newsletters'); } }