abortIf($this->connection->getDatabasePlatform()->getName() != "mysql"); $this->addSql("ALTER TABLE blog_posts ADD draft TINYINT(1) NOT NULL"); $this->addSql("UPDATE blog_posts SET draft = 0"); } public function down(Schema $schema) { // this down() migration is autogenerated, please modify it to your needs $this->abortIf($this->connection->getDatabasePlatform()->getName() != "mysql"); $this->addSql("ALTER TABLE blog_posts DROP draft"); } }