+ $this->skipIf($clientsTable->hasColumn('name'), 'It seems that you already played this migration.');
+
+ $clientsTable->addColumn('name', 'blob');
}
/**
}
/**
@@ -37,8+40,7 @@ class Version20160812120952 extends AbstractMigration implements ContainerAwareI
*/
public function down(Schema $schema)
{
*/
public function down(Schema $schema)
{
- $this->abortIf($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');