-
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.
Added version = 0.0.1 as default value for all Entity
- Loading branch information
1 parent
7ea7fbc
commit c35e075
Showing
13 changed files
with
63 additions
and
12 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 Version20231219151046 extends AbstractMigration | ||
{ | ||
public function getDescription(): string | ||
{ | ||
return 'Set version default to 0.0.1'; | ||
} | ||
|
||
public function up(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\''); | ||
} | ||
|
||
public function down(Schema $schema): void | ||
{ | ||
$this->addSql('ALTER TABLE action ALTER version SET DEFAULT NULL'); | ||
$this->addSql('ALTER TABLE application ALTER version SET DEFAULT NULL'); | ||
$this->addSql('ALTER TABLE collection_entity ALTER version SET DEFAULT NULL'); | ||
$this->addSql('ALTER TABLE cronjob ALTER version SET DEFAULT NULL'); | ||
$this->addSql('ALTER TABLE endpoint ALTER version SET DEFAULT NULL'); | ||
$this->addSql('ALTER TABLE entity ALTER version SET DEFAULT NULL'); | ||
$this->addSql('ALTER TABLE gateway ALTER version SET DEFAULT NULL'); | ||
$this->addSql('ALTER TABLE mapping ALTER version SET DEFAULT NULL'); | ||
$this->addSql('ALTER TABLE organization ALTER version SET DEFAULT NULL'); | ||
$this->addSql('ALTER TABLE security_group ALTER version SET DEFAULT NULL'); | ||
$this->addSql('ALTER TABLE template ALTER version SET DEFAULT NULL'); | ||
$this->addSql('ALTER TABLE "user" ALTER version SET DEFAULT NULL'); | ||
} | ||
} |
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