From 98a3b38995d064b576645a2ae01dba8c2712c485 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Fri, 31 Jul 2020 15:52:06 +0200 Subject: [PATCH] adapt migrations files to flex --- .../migrations => migrations}/Version20180413135614.php | 6 +++--- .../migrations => migrations}/Version20180413201023.php | 6 +++--- .../migrations => migrations}/Version20180426093011.php | 6 +++--- .../migrations => migrations}/Version20180502194119.php | 6 +++--- .../migrations => migrations}/Version20181113161925.php | 4 ++-- .../migrations => migrations}/Version20181113164108.php | 4 ++-- 6 files changed, 16 insertions(+), 16 deletions(-) rename {Resources/migrations => migrations}/Version20180413135614.php (94%) rename {Resources/migrations => migrations}/Version20180413201023.php (95%) rename {Resources/migrations => migrations}/Version20180426093011.php (87%) rename {Resources/migrations => migrations}/Version20180502194119.php (93%) rename {Resources/migrations => migrations}/Version20181113161925.php (91%) rename {Resources/migrations => migrations}/Version20181113164108.php (90%) diff --git a/Resources/migrations/Version20180413135614.php b/migrations/Version20180413135614.php similarity index 94% rename from Resources/migrations/Version20180413135614.php rename to migrations/Version20180413135614.php index 873f9b678..304ecab7e 100644 --- a/Resources/migrations/Version20180413135614.php +++ b/migrations/Version20180413135614.php @@ -2,7 +2,7 @@ namespace Application\Migrations; -use Doctrine\DBAL\Migrations\AbstractMigration; +use Doctrine\Migrations\AbstractMigration; use Doctrine\DBAL\Schema\Schema; /** @@ -13,7 +13,7 @@ class Version20180413135614 extends AbstractMigration /** * @param Schema $schema */ - public function up(Schema $schema) + public function up(Schema $schema): void { $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'postgresql', 'Migration can only be executed safely on \'postgresql\'.'); @@ -33,7 +33,7 @@ class Version20180413135614 extends AbstractMigration /** * @param Schema $schema */ - public function down(Schema $schema) + public function down(Schema $schema): void { $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'postgresql', 'Migration can only be executed safely on \'postgresql\'.'); diff --git a/Resources/migrations/Version20180413201023.php b/migrations/Version20180413201023.php similarity index 95% rename from Resources/migrations/Version20180413201023.php rename to migrations/Version20180413201023.php index f068fe0e2..88890edaf 100644 --- a/Resources/migrations/Version20180413201023.php +++ b/migrations/Version20180413201023.php @@ -2,7 +2,7 @@ namespace Application\Migrations; -use Doctrine\DBAL\Migrations\AbstractMigration; +use Doctrine\Migrations\AbstractMigration; use Doctrine\DBAL\Schema\Schema; /** @@ -13,7 +13,7 @@ class Version20180413201023 extends AbstractMigration /** * @param Schema $schema */ - public function up(Schema $schema) + public function up(Schema $schema): void { $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'postgresql', 'Migration can only be executed safely on \'postgresql\'.'); @@ -36,7 +36,7 @@ class Version20180413201023 extends AbstractMigration /** * @param Schema $schema */ - public function down(Schema $schema) + public function down(Schema $schema): void { $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'postgresql', 'Migration can only be executed safely on \'postgresql\'.'); diff --git a/Resources/migrations/Version20180426093011.php b/migrations/Version20180426093011.php similarity index 87% rename from Resources/migrations/Version20180426093011.php rename to migrations/Version20180426093011.php index 286d4e3d1..58065f182 100644 --- a/Resources/migrations/Version20180426093011.php +++ b/migrations/Version20180426093011.php @@ -2,7 +2,7 @@ namespace Application\Migrations; -use Doctrine\DBAL\Migrations\AbstractMigration; +use Doctrine\Migrations\AbstractMigration; use Doctrine\DBAL\Schema\Schema; /** @@ -10,7 +10,7 @@ use Doctrine\DBAL\Schema\Schema; */ class Version20180426093011 extends AbstractMigration { - public function up(Schema $schema) + public function up(Schema $schema): void { $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'postgresql', 'Migration can only be executed safely on \'postgresql\'.'); @@ -18,7 +18,7 @@ class Version20180426093011 extends AbstractMigration $this->addSql('ALTER TABLE chill_task.recurring_task ADD closed BOOLEAN DEFAULT \'false\' NOT NULL'); } - public function down(Schema $schema) + public function down(Schema $schema): void { $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'postgresql', 'Migration can only be executed safely on \'postgresql\'.'); diff --git a/Resources/migrations/Version20180502194119.php b/migrations/Version20180502194119.php similarity index 93% rename from Resources/migrations/Version20180502194119.php rename to migrations/Version20180502194119.php index a07ad1089..fbfe0f685 100644 --- a/Resources/migrations/Version20180502194119.php +++ b/migrations/Version20180502194119.php @@ -2,7 +2,7 @@ namespace Application\Migrations; -use Doctrine\DBAL\Migrations\AbstractMigration; +use Doctrine\Migrations\AbstractMigration; use Doctrine\DBAL\Schema\Schema; /** @@ -10,7 +10,7 @@ use Doctrine\DBAL\Schema\Schema; */ class Version20180502194119 extends AbstractMigration { - public function up(Schema $schema) + public function up(Schema $schema): void { $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'postgresql', 'Migration can only be executed safely on \'postgresql\'.'); @@ -23,7 +23,7 @@ class Version20180502194119 extends AbstractMigration $this->addSql('ALTER TABLE chill_task.single_task_place_event ADD CONSTRAINT FK_D459EBEE8DB60186 FOREIGN KEY (task_id) REFERENCES chill_task.single_task (id) NOT DEFERRABLE INITIALLY IMMEDIATE'); } - public function down(Schema $schema) + public function down(Schema $schema): void { $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'postgresql', 'Migration can only be executed safely on \'postgresql\'.'); diff --git a/Resources/migrations/Version20181113161925.php b/migrations/Version20181113161925.php similarity index 91% rename from Resources/migrations/Version20181113161925.php rename to migrations/Version20181113161925.php index 7b3ae95f4..c5cdb015b 100644 --- a/Resources/migrations/Version20181113161925.php +++ b/migrations/Version20181113161925.php @@ -10,7 +10,7 @@ use Doctrine\Migrations\AbstractMigration; */ final class Version20181113161925 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\'.'); @@ -18,7 +18,7 @@ final class Version20181113161925 extends AbstractMigration $this->addSql('CREATE INDEX transition_task ON chill_task.single_task_place_event (task_id, transition)'); } - 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\'.'); diff --git a/Resources/migrations/Version20181113164108.php b/migrations/Version20181113164108.php similarity index 90% rename from Resources/migrations/Version20181113164108.php rename to migrations/Version20181113164108.php index 48e22c597..0945ca638 100644 --- a/Resources/migrations/Version20181113164108.php +++ b/migrations/Version20181113164108.php @@ -10,7 +10,7 @@ use Doctrine\Migrations\AbstractMigration; */ final class Version20181113164108 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\'.'); @@ -18,7 +18,7 @@ final class Version20181113164108 extends AbstractMigration $this->addSql('CREATE INDEX by_current_state ON chill_task.single_task USING GIN (current_states)'); } - 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\'.');