abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on \'mysql\'.'); $this->addSql(' ALTER TABLE documents ADD shares INT DEFAULT NULL, ADD views INT DEFAULT NULL, ADD source_location VARCHAR(255) DEFAULT 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 documents DROP shares, DROP views, DROP source_location'); } }