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)\''); + } +}