abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.'); $this->addSql(' ALTER TABLE users CHANGE number_of_searches_allowed number_of_searches_per_day_allowed 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 users CHANGE number_of_searches_per_day_allowed number_of_searches_allowed INT NOT NULL '); } }