-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1603 from ConductionNL/feature/default-version-fix
Set version default to 0.0.0 instead of 0.0.1
- Loading branch information
Showing
13 changed files
with
75 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace DoctrineMigrations; | ||
|
||
use Doctrine\DBAL\Schema\Schema; | ||
use Doctrine\Migrations\AbstractMigration; | ||
|
||
/** | ||
* Auto-generated Migration: Please modify to your needs! | ||
*/ | ||
final class Version20240109135300 extends AbstractMigration | ||
{ | ||
public function getDescription(): string | ||
{ | ||
return 'Set version default to 0.0.0 (and not nullable)'; | ||
} | ||
|
||
public function up(Schema $schema): void | ||
{ | ||
$this->addSql('ALTER TABLE action ALTER version SET DEFAULT \'0.0.0\''); | ||
$this->addSql('ALTER TABLE application ALTER version SET DEFAULT \'0.0.0\''); | ||
$this->addSql('ALTER TABLE collection_entity ALTER version SET DEFAULT \'0.0.0\''); | ||
$this->addSql('ALTER TABLE cronjob ALTER version SET DEFAULT \'0.0.0\''); | ||
$this->addSql('ALTER TABLE endpoint ALTER version SET DEFAULT \'0.0.0\''); | ||
$this->addSql('ALTER TABLE entity ALTER version SET DEFAULT \'0.0.0\''); | ||
$this->addSql('ALTER TABLE gateway ALTER version SET DEFAULT \'0.0.0\''); | ||
$this->addSql('ALTER TABLE mapping ALTER version SET DEFAULT \'0.0.0\''); | ||
$this->addSql('ALTER TABLE organization ALTER version SET DEFAULT \'0.0.0\''); | ||
$this->addSql('ALTER TABLE security_group ALTER version SET DEFAULT \'0.0.0\''); | ||
$this->addSql('ALTER TABLE template ALTER version SET DEFAULT \'0.0.0\''); | ||
$this->addSql('ALTER TABLE "user" ALTER version SET DEFAULT \'0.0.0\''); | ||
} | ||
|
||
public function down(Schema $schema): void | ||
{ | ||
$this->addSql('ALTER TABLE action ALTER version SET DEFAULT \'0.0.1\''); | ||
$this->addSql('ALTER TABLE application ALTER version SET DEFAULT \'0.0.1\''); | ||
$this->addSql('ALTER TABLE collection_entity ALTER version SET DEFAULT \'0.0.1\''); | ||
$this->addSql('ALTER TABLE cronjob ALTER version SET DEFAULT \'0.0.1\''); | ||
$this->addSql('ALTER TABLE endpoint ALTER version SET DEFAULT \'0.0.1\''); | ||
$this->addSql('ALTER TABLE entity ALTER version SET DEFAULT \'0.0.1\''); | ||
$this->addSql('ALTER TABLE gateway ALTER version SET DEFAULT \'0.0.1\''); | ||
$this->addSql('ALTER TABLE mapping ALTER version SET DEFAULT \'0.0.1\''); | ||
$this->addSql('ALTER TABLE organization ALTER version SET DEFAULT \'0.0.1\''); | ||
$this->addSql('ALTER TABLE security_group ALTER version SET DEFAULT \'0.0.1\''); | ||
$this->addSql('ALTER TABLE template ALTER version SET DEFAULT \'0.0.1\''); | ||
$this->addSql('ALTER TABLE "user" ALTER version SET DEFAULT \'0.0.1\''); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters