diff --git a/migrations/Version20141128195430.php b/migrations/Version20141128195430.php index 9de4c37b1..b83d99a6a 100644 --- a/migrations/Version20141128195430.php +++ b/migrations/Version20141128195430.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 Version20141128195430 extends AbstractMigration { - public function up(Schema $schema) + public function up(Schema $schema): void { $this->addSql("CREATE SEQUENCE CustomField_id_seq INCREMENT BY 1 MINVALUE 1 START 1;"); $this->addSql("CREATE SEQUENCE CustomFieldsDefaultGroup_id_seq INCREMENT BY 1 MINVALUE 1 START 1;"); @@ -26,7 +26,7 @@ class Version20141128195430 extends AbstractMigration } - public function down(Schema $schema) + public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs diff --git a/migrations/Version20150224164531.php b/migrations/Version20150224164531.php index a4d3771ad..73226c2fe 100644 --- a/migrations/Version20150224164531.php +++ b/migrations/Version20150224164531.php @@ -2,7 +2,7 @@ namespace Application\Migrations; -use Doctrine\DBAL\Migrations\AbstractMigration; +use Doctrine\Migrations\AbstractMigration; use Doctrine\DBAL\Schema\Schema; /** @@ -10,12 +10,12 @@ use Doctrine\DBAL\Schema\Schema; */ class Version20150224164531 extends AbstractMigration { - public function up(Schema $schema) + public function up(Schema $schema): void { $this->addSql('ALTER TABLE customfieldsgroup ADD options JSON DEFAULT \'{}\'::json'); } - public function down(Schema $schema) + public function down(Schema $schema): void { $this->addSql('ALTER TABLE CustomFieldsGroup DROP options'); } diff --git a/migrations/Version20151210155904.php b/migrations/Version20151210155904.php index f3d9eadf3..3576eb6c1 100644 --- a/migrations/Version20151210155904.php +++ b/migrations/Version20151210155904.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 Version20151210155904 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\'.'); @@ -24,7 +24,7 @@ class Version20151210155904 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/migrations/Version20151210205610.php b/migrations/Version20151210205610.php index 01cb61728..e3d3b84c1 100644 --- a/migrations/Version20151210205610.php +++ b/migrations/Version20151210205610.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 Version20151210205610 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\'.'); @@ -35,7 +35,7 @@ class Version20151210205610 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\'.');