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

@ -50,7 +50,7 @@ class Version20160812120952 extends AbstractMigration implements ContainerAwareI
*/
public function down(Schema $schema)
{
$this->abortIf($this->connection->getDatabasePlatform()->getName() == 'sqlite', 'Migration can only be executed safely on \'mysql\' or \'postgresql\'.');
$this->skipIf($this->connection->getDatabasePlatform()->getName() == 'sqlite', 'Migration can only be executed safely on \'mysql\' or \'postgresql\'.');
$this->addSql('ALTER TABLE '.$this->getTable('oauth2_clients').' DROP COLUMN name');
}