adapt migrations files to flex

This commit is contained in:
Julien Fastré 2020-07-31 15:52:06 +02:00
parent a2c12b41a9
commit 2fc3bb9c25
5 changed files with 10 additions and 10 deletions

View File

@ -12,7 +12,7 @@ use Doctrine\Migrations\AbstractMigration;
*/ */
final class Version20190307111314 extends AbstractMigration final class Version20190307111314 extends AbstractMigration
{ {
public function up(Schema $schema) : void public function up(Schema $schema): void
{ {
// this up() migration is auto-generated, please modify it to your needs // 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->abortIf($this->connection->getDatabasePlatform()->getName() !== 'postgresql', 'Migration can only be executed safely on \'postgresql\'.');
@ -23,7 +23,7 @@ final class Version20190307111314 extends AbstractMigration
} }
public function down(Schema $schema) : void public function down(Schema $schema): void
{ {
// this down() migration is auto-generated, please modify it to your needs // 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->abortIf($this->connection->getDatabasePlatform()->getName() !== 'postgresql', 'Migration can only be executed safely on \'postgresql\'.');

View File

@ -10,7 +10,7 @@ use Doctrine\Migrations\AbstractMigration;
*/ */
final class Version20190307131650 extends AbstractMigration final class Version20190307131650 extends AbstractMigration
{ {
public function up(Schema $schema) : void public function up(Schema $schema): void
{ {
// this up() migration is auto-generated, please modify it to your needs // this up() migration is auto-generated, please modify it to your needs
$this->addSql("CREATE SCHEMA chill_3party"); $this->addSql("CREATE SCHEMA chill_3party");
@ -20,7 +20,7 @@ final class Version20190307131650 extends AbstractMigration
$this->addSql("ALTER SEQUENCE chill_3party.chill_third_party_id_seq RENAME TO third_party_id_seq"); $this->addSql("ALTER SEQUENCE chill_3party.chill_third_party_id_seq RENAME TO third_party_id_seq");
} }
public function down(Schema $schema) : void public function down(Schema $schema): void
{ {
// this down() migration is auto-generated, please modify it to your needs // this down() migration is auto-generated, please modify it to your needs
$this->throwIrreversibleMigrationException("The down version of this migration is " $this->throwIrreversibleMigrationException("The down version of this migration is "

View File

@ -10,7 +10,7 @@ use Doctrine\Migrations\AbstractMigration;
*/ */
final class Version20190418090842 extends AbstractMigration final class Version20190418090842 extends AbstractMigration
{ {
public function up(Schema $schema) : void public function up(Schema $schema): void
{ {
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'postgresql', 'Migration can only be executed safely on \'postgresql\'.'); $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'postgresql', 'Migration can only be executed safely on \'postgresql\'.');
@ -22,7 +22,7 @@ final class Version20190418090842 extends AbstractMigration
$this->addSql('ALTER TABLE chill_3party.third_party ADD active BOOLEAN NOT NULL'); $this->addSql('ALTER TABLE chill_3party.third_party ADD active BOOLEAN NOT NULL');
} }
public function down(Schema $schema) : void public function down(Schema $schema): void
{ {
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'postgresql', 'Migration can only be executed safely on \'postgresql\'.'); $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'postgresql', 'Migration can only be executed safely on \'postgresql\'.');

View File

@ -10,7 +10,7 @@ use Doctrine\Migrations\AbstractMigration;
*/ */
final class Version20190429171109 extends AbstractMigration final class Version20190429171109 extends AbstractMigration
{ {
public function up(Schema $schema) : void public function up(Schema $schema): void
{ {
$this->addSql("ALTER TABLE chill_3party.third_party RENAME COLUMN type " $this->addSql("ALTER TABLE chill_3party.third_party RENAME COLUMN type "
. "TO types"); . "TO types");
@ -19,7 +19,7 @@ final class Version20190429171109 extends AbstractMigration
} }
public function down(Schema $schema) : void public function down(Schema $schema): void
{ {
$this->throwIrreversibleMigrationException("not implemented"); $this->throwIrreversibleMigrationException("not implemented");
} }

View File

@ -10,7 +10,7 @@ use Doctrine\Migrations\AbstractMigration;
*/ */
final class Version20190502144206 extends AbstractMigration final class Version20190502144206 extends AbstractMigration
{ {
public function up(Schema $schema) : void public function up(Schema $schema): void
{ {
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'postgresql', 'Migration can only be executed safely on \'postgresql\'.'); $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'postgresql', 'Migration can only be executed safely on \'postgresql\'.');
@ -21,7 +21,7 @@ final class Version20190502144206 extends AbstractMigration
} }
public function down(Schema $schema) : void public function down(Schema $schema): void
{ {
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'postgresql', 'Migration can only be executed safely on \'postgresql\'.'); $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'postgresql', 'Migration can only be executed safely on \'postgresql\'.');