From b7d6d29fac8c505a8a25aeb3f23f37b3e3bcfbe6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Mon, 19 Apr 2021 13:29:17 +0200 Subject: [PATCH] AccompanyingPeriod/ClosingMotive: fix json_array deprecated --- .../AccompanyingPeriod/ClosingMotive.php | 2 +- .../migrations/Version20210419112619.php | 29 +++++++++++++++++++ 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 src/Bundle/ChillPersonBundle/migrations/Version20210419112619.php diff --git a/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod/ClosingMotive.php b/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod/ClosingMotive.php index 1bb48da00..4e334b2aa 100644 --- a/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod/ClosingMotive.php +++ b/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod/ClosingMotive.php @@ -47,7 +47,7 @@ class ClosingMotive /** * @var array * - * @ORM\Column(type="json_array") + * @ORM\Column(type="json") */ private $name; diff --git a/src/Bundle/ChillPersonBundle/migrations/Version20210419112619.php b/src/Bundle/ChillPersonBundle/migrations/Version20210419112619.php new file mode 100644 index 000000000..919fe4cff --- /dev/null +++ b/src/Bundle/ChillPersonBundle/migrations/Version20210419112619.php @@ -0,0 +1,29 @@ +addSql('COMMENT ON COLUMN chill_person_accompanying_period_closingmotive.name IS NULL'); + } + + public function down(Schema $schema) : void + { + $this->addSql('COMMENT ON COLUMN chill_person_accompanying_period_closingmotive.name IS \'(DC2Type:json_array)\''); + } +}