Replaced abortIf with skipIf

This commit is contained in:
Nicolas Lœuillet
2016-11-26 13:34:36 +01:00
parent 18d7bc3a35
commit a4d55a9161
12 changed files with 22 additions and 24 deletions

View File

@ -42,7 +42,7 @@ class Version20161118134328 extends AbstractMigration implements ContainerAwareI
*/
public function down(Schema $schema)
{
$this->abortIf($this->connection->getDatabasePlatform()->getName() != 'sqlite', 'This down migration can\'t be executed on SQLite databases, because SQLite don\'t support DROP COLUMN.');
$this->skipIf($this->connection->getDatabasePlatform()->getName() != 'sqlite', 'This down migration can\'t be executed on SQLite databases, because SQLite don\'t support DROP COLUMN.');
$this->addSql('ALTER TABLE '.$this->getTable('entry').' DROP http_status');
}