Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix last version migration to set version fields that are null to: 0.0.0 #1618

Merged
merged 1 commit into from
Feb 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions api/migrations/Version20240109135300.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,29 @@ public function getDescription(): string

public function up(Schema $schema): void
{
$this->addSql('UPDATE action SET version = \'0.0.0\' WHERE version IS NULL');
$this->addSql('ALTER TABLE action ALTER version SET DEFAULT \'0.0.0\'');
$this->addSql('UPDATE application SET version = \'0.0.0\' WHERE version IS NULL');
$this->addSql('ALTER TABLE application ALTER version SET DEFAULT \'0.0.0\'');
$this->addSql('UPDATE collection_entity SET version = \'0.0.0\' WHERE version IS NULL');
$this->addSql('ALTER TABLE collection_entity ALTER version SET DEFAULT \'0.0.0\'');
$this->addSql('UPDATE cronjob SET version = \'0.0.0\' WHERE version IS NULL');
$this->addSql('ALTER TABLE cronjob ALTER version SET DEFAULT \'0.0.0\'');
$this->addSql('UPDATE endpoint SET version = \'0.0.0\' WHERE version IS NULL');
$this->addSql('ALTER TABLE endpoint ALTER version SET DEFAULT \'0.0.0\'');
$this->addSql('UPDATE entity SET version = \'0.0.0\' WHERE version IS NULL');
$this->addSql('ALTER TABLE entity ALTER version SET DEFAULT \'0.0.0\'');
$this->addSql('UPDATE gateway SET version = \'0.0.0\' WHERE version IS NULL');
$this->addSql('ALTER TABLE gateway ALTER version SET DEFAULT \'0.0.0\'');
$this->addSql('UPDATE mapping SET version = \'0.0.0\' WHERE version IS NULL');
$this->addSql('ALTER TABLE mapping ALTER version SET DEFAULT \'0.0.0\'');
$this->addSql('UPDATE organization SET version = \'0.0.0\' WHERE version IS NULL');
$this->addSql('ALTER TABLE organization ALTER version SET DEFAULT \'0.0.0\'');
$this->addSql('UPDATE security_group SET version = \'0.0.0\' WHERE version IS NULL');
$this->addSql('ALTER TABLE security_group ALTER version SET DEFAULT \'0.0.0\'');
$this->addSql('UPDATE template SET version = \'0.0.0\' WHERE version IS NULL');
$this->addSql('ALTER TABLE template ALTER version SET DEFAULT \'0.0.0\'');
$this->addSql('UPDATE "user" SET version = \'0.0.0\' WHERE version IS NULL');
$this->addSql('ALTER TABLE "user" ALTER version SET DEFAULT \'0.0.0\'');
}

Expand Down
Loading