You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've changed one field in my model from not null to default null, generated a migration using diff and got:
class Version20150105175136 extends AbstractMigration
{
public function up(Schema $schema)
{
// this up() migration is auto-generated, please modify it to your needs
$this->abortIf($this->connection->getDatabasePlatform()->getName() != 'postgresql', 'Migration can only be executed safely on \'postgresql\'.');
$this->addSql('ALTER TABLE badge ALTER company_id DROP NOT NULL');
}
public function down(Schema $schema)
{
// this down() migration is auto-generated, please modify it to your needs
$this->abortIf($this->connection->getDatabasePlatform()->getName() != 'postgresql', 'Migration can only be executed safely on \'postgresql\'.');
$this->addSql('ALTER TABLE Badge ALTER company_id SET NOT NULL');
}
}
Please note the name Badge and badge in up and down migrations. Is this a bug?
The text was updated successfully, but these errors were encountered:
I've changed one field in my model from not null to default null, generated a migration using diff and got:
Please note the name Badge and badge in up and down migrations. Is this a bug?
The text was updated successfully, but these errors were encountered: