From 153dad83f9188c00418f4fecd79124fe2e11a337 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}/Version20150701091248.php | 6 +++--- .../migrations => migrations}/Version20150702093317.php | 6 +++--- .../migrations => migrations}/Version20150704091347.php | 6 +++--- .../migrations => migrations}/Version20160222103457.php | 6 +++--- .../migrations => migrations}/Version20161114085659.php | 6 +++--- 5 files changed, 15 insertions(+), 15 deletions(-) rename {Resources/migrations => migrations}/Version20150701091248.php (97%) rename {Resources/migrations => migrations}/Version20150702093317.php (95%) rename {Resources/migrations => migrations}/Version20150704091347.php (93%) rename {Resources/migrations => migrations}/Version20160222103457.php (95%) rename {Resources/migrations => migrations}/Version20161114085659.php (78%) diff --git a/Resources/migrations/Version20150701091248.php b/migrations/Version20150701091248.php similarity index 97% rename from Resources/migrations/Version20150701091248.php rename to migrations/Version20150701091248.php index 3dcabea2f..8a99255dc 100644 --- a/Resources/migrations/Version20150701091248.php +++ b/migrations/Version20150701091248.php @@ -22,7 +22,7 @@ namespace Application\Migrations; -use Doctrine\DBAL\Migrations\AbstractMigration; +use Doctrine\Migrations\AbstractMigration; use Doctrine\DBAL\Schema\Schema; /** @@ -33,7 +33,7 @@ class Version20150701091248 extends AbstractMigration /** * @param Schema $schema */ - public function up(Schema $schema) + public function up(Schema $schema): void { // 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\'.'); @@ -63,7 +63,7 @@ class Version20150701091248 extends AbstractMigration /** * @param Schema $schema */ - public function down(Schema $schema) + public function down(Schema $schema): void { // 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\'.'); diff --git a/Resources/migrations/Version20150702093317.php b/migrations/Version20150702093317.php similarity index 95% rename from Resources/migrations/Version20150702093317.php rename to migrations/Version20150702093317.php index 6f65e63ef..25781dc86 100644 --- a/Resources/migrations/Version20150702093317.php +++ b/migrations/Version20150702093317.php @@ -22,7 +22,7 @@ namespace Application\Migrations; -use Doctrine\DBAL\Migrations\AbstractMigration; +use Doctrine\Migrations\AbstractMigration; use Doctrine\DBAL\Schema\Schema; /** @@ -33,7 +33,7 @@ class Version20150702093317 extends AbstractMigration /** * @param Schema $schema */ - public function up(Schema $schema) + public function up(Schema $schema): void { // 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\'.'); @@ -49,7 +49,7 @@ class Version20150702093317 extends AbstractMigration /** * @param Schema $schema */ - public function down(Schema $schema) + public function down(Schema $schema): void { // 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\'.'); diff --git a/Resources/migrations/Version20150704091347.php b/migrations/Version20150704091347.php similarity index 93% rename from Resources/migrations/Version20150704091347.php rename to migrations/Version20150704091347.php index 1f13f95ee..c8738858a 100644 --- a/Resources/migrations/Version20150704091347.php +++ b/migrations/Version20150704091347.php @@ -22,7 +22,7 @@ namespace Application\Migrations; -use Doctrine\DBAL\Migrations\AbstractMigration; +use Doctrine\Migrations\AbstractMigration; use Doctrine\DBAL\Schema\Schema; /** @@ -34,7 +34,7 @@ class Version20150704091347 extends AbstractMigration /** * @param Schema $schema */ - public function up(Schema $schema) + public function up(Schema $schema): void { // 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\'.'); @@ -46,7 +46,7 @@ class Version20150704091347 extends AbstractMigration /** * @param Schema $schema */ - public function down(Schema $schema) + public function down(Schema $schema): void { // 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\'.'); diff --git a/Resources/migrations/Version20160222103457.php b/migrations/Version20160222103457.php similarity index 95% rename from Resources/migrations/Version20160222103457.php rename to migrations/Version20160222103457.php index c08be5c2f..7bd3c708e 100644 --- a/Resources/migrations/Version20160222103457.php +++ b/migrations/Version20160222103457.php @@ -2,7 +2,7 @@ namespace Application\Migrations; -use Doctrine\DBAL\Migrations\AbstractMigration; +use Doctrine\Migrations\AbstractMigration; use Doctrine\DBAL\Schema\Schema; /** @@ -16,7 +16,7 @@ class Version20160222103457 extends AbstractMigration /** * @param Schema $schema */ - public function up(Schema $schema) + public function up(Schema $schema): void { $this->abortIf($this->connection->getDatabasePlatform()->getName() != 'postgresql', @@ -51,7 +51,7 @@ class Version20160222103457 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/Version20161114085659.php b/migrations/Version20161114085659.php similarity index 78% rename from Resources/migrations/Version20161114085659.php rename to migrations/Version20161114085659.php index cd23b4ffa..1c8504861 100644 --- a/Resources/migrations/Version20161114085659.php +++ b/migrations/Version20161114085659.php @@ -2,7 +2,7 @@ namespace Application\Migrations; -use Doctrine\DBAL\Migrations\AbstractMigration; +use Doctrine\Migrations\AbstractMigration; use Doctrine\DBAL\Schema\Schema; use Doctrine\DBAL\Types\Type; @@ -14,7 +14,7 @@ class Version20161114085659 extends AbstractMigration /** * @param Schema $schema */ - public function up(Schema $schema) + public function up(Schema $schema): void { $this->addSql('ALTER TABLE activitytype ADD active BOOLEAN NOT NULL DEFAULT \'t\''); } @@ -22,7 +22,7 @@ class Version20161114085659 extends AbstractMigration /** * @param Schema $schema */ - public function down(Schema $schema) + public function down(Schema $schema): void { $this->addSql('ALTER TABLE ActivityType DROP active'); }