AccompanyingPeriod/ClosingMotive: fix json_array deprecated

This commit is contained in:
Julien Fastré 2021-04-19 13:29:17 +02:00
parent 51e9b1fcf2
commit b7d6d29fac
2 changed files with 30 additions and 1 deletions

View File

@ -47,7 +47,7 @@ class ClosingMotive
/** /**
* @var array * @var array
* *
* @ORM\Column(type="json_array") * @ORM\Column(type="json")
*/ */
private $name; private $name;

View File

@ -0,0 +1,29 @@
<?php
declare(strict_types=1);
namespace Chill\Migrations\Person;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* fix deprecated json array
*/
final class Version20210419112619 extends AbstractMigration
{
public function getDescription() : string
{
return 'fix deprecated json_array';
}
public function up(Schema $schema) : void
{
$this->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)\'');
}
}