From d1e7b360e999cbf6392b3cbc14dfe620ed87f292 Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Sat, 19 Jan 2019 21:38:41 +0300 Subject: [PATCH] Migrations up() and down() signatures fixed according to 2.0.0 changes. --- app/DoctrineMigrations/Version20150302205121.php | 4 ++-- app/DoctrineMigrations/Version20150302213116.php | 4 ++-- app/DoctrineMigrations/Version20150302223210.php | 4 ++-- app/DoctrineMigrations/Version20150303224825.php | 4 ++-- app/DoctrineMigrations/Version20150305184842.php | 4 ++-- app/DoctrineMigrations/Version20150316014139.php | 4 ++-- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/app/DoctrineMigrations/Version20150302205121.php b/app/DoctrineMigrations/Version20150302205121.php index 9df48c7..637c634 100644 --- a/app/DoctrineMigrations/Version20150302205121.php +++ b/app/DoctrineMigrations/Version20150302205121.php @@ -10,7 +10,7 @@ use Doctrine\DBAL\Schema\Schema; */ class Version20150302205121 extends AbstractMigration { - public function up(Schema $schema) + public function up(Schema $schema): void { $this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on \'mysql\'.'); @@ -50,7 +50,7 @@ class Version20150302205121 extends AbstractMigration } } - public function down(Schema $schema) + public function down(Schema $schema): void { $this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on \'mysql\'.'); diff --git a/app/DoctrineMigrations/Version20150302213116.php b/app/DoctrineMigrations/Version20150302213116.php index 2fe5a74..93a0525 100644 --- a/app/DoctrineMigrations/Version20150302213116.php +++ b/app/DoctrineMigrations/Version20150302213116.php @@ -10,7 +10,7 @@ use Doctrine\DBAL\Schema\Schema; */ class Version20150302213116 extends AbstractMigration { - public function up(Schema $schema) + public function up(Schema $schema): void { $this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on \'mysql\'.'); @@ -46,7 +46,7 @@ class Version20150302213116 extends AbstractMigration $this->addSql('RENAME TABLE paste TO copypastes'); } - public function down(Schema $schema) + public function down(Schema $schema): void { $this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on \'mysql\'.'); diff --git a/app/DoctrineMigrations/Version20150302223210.php b/app/DoctrineMigrations/Version20150302223210.php index 5b73d56..5d4a75c 100644 --- a/app/DoctrineMigrations/Version20150302223210.php +++ b/app/DoctrineMigrations/Version20150302223210.php @@ -10,7 +10,7 @@ use Doctrine\DBAL\Schema\Schema; */ class Version20150302223210 extends AbstractMigration { - public function up(Schema $schema) + public function up(Schema $schema): void { $this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on \'mysql\'.'); @@ -24,7 +24,7 @@ class Version20150302223210 extends AbstractMigration $this->addSql('CREATE INDEX IDX_DBA4BEBE82F1BAF4 ON copypastes (language_id)'); } - public function down(Schema $schema) + public function down(Schema $schema): void { $this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on \'mysql\'.'); diff --git a/app/DoctrineMigrations/Version20150303224825.php b/app/DoctrineMigrations/Version20150303224825.php index afd851d..25712e1 100644 --- a/app/DoctrineMigrations/Version20150303224825.php +++ b/app/DoctrineMigrations/Version20150303224825.php @@ -10,12 +10,12 @@ use Doctrine\DBAL\Schema\Schema; */ class Version20150303224825 extends AbstractMigration { - public function up(Schema $schema) + public function up(Schema $schema): void { $this->addSql('UPDATE copypastes SET secret=NULL WHERE secret=\'\''); } - public function down(Schema $schema) + public function down(Schema $schema): void { $this->addSql('UPDATE copypastes SET secret=\'\' WHERE secret=NULL'); } diff --git a/app/DoctrineMigrations/Version20150305184842.php b/app/DoctrineMigrations/Version20150305184842.php index 5e3468c..56d0292 100644 --- a/app/DoctrineMigrations/Version20150305184842.php +++ b/app/DoctrineMigrations/Version20150305184842.php @@ -10,13 +10,13 @@ use Doctrine\DBAL\Schema\Schema; */ class Version20150305184842 extends AbstractMigration { - public function up(Schema $schema) + public function up(Schema $schema): void { $this->addSql('UPDATE copypastes SET date_expire=NULL WHERE date_expire=\'0000-00-00 00:00:00\''); } - public function down(Schema $schema) + public function down(Schema $schema): void { $this->addSql('UPDATE copypastes SET date_expire=\'0000-00-00 00:00:00\' WHERE date_expire=NULL'); } diff --git a/app/DoctrineMigrations/Version20150316014139.php b/app/DoctrineMigrations/Version20150316014139.php index e475f82..e49e2ef 100644 --- a/app/DoctrineMigrations/Version20150316014139.php +++ b/app/DoctrineMigrations/Version20150316014139.php @@ -12,7 +12,7 @@ use Doctrine\DBAL\Schema\Schema; */ class Version20150316014139 extends AbstractMigration { - public function up(Schema $schema) + public function up(Schema $schema): void { $this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on \'mysql\'.'); @@ -21,7 +21,7 @@ class Version20150316014139 extends AbstractMigration $this->addSql('CREATE INDEX idx_preferred ON languages (is_preferred)'); } - public function down(Schema $schema) + public function down(Schema $schema): void { $this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on \'mysql\'.');