v3.2.0
What's Changed
- Replace deprecated 'json_array' type usage with 'json' by @yann-eugone in #47
Full Changelog: v3.1.1...v3.2.0
SQL migration:
<?php
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class VersionYYYYMMDDHHIISS extends AbstractMigration
{
public function getDescription(): string
{
return 'Changed YokaiSecurityTokenBundle json columns doctrine type comments';
}
public function up(Schema $schema): void
{
$this->addSql(<<<SQL
ALTER TABLE yokai_security_token
MODIFY payload json NOT NULL COMMENT '(DC2Type:json)',
MODIFY created_information json NOT NULL COMMENT '(DC2Type:json)';
SQL);
$this->addSql(<<<SQL
ALTER TABLE yokai_security_token_usage
MODIFY information json NOT NULL COMMENT '(DC2Type:json)';
SQL);
}
public function down(Schema $schema): void
{
$this->addSql(<<<SQL
ALTER TABLE yokai_security_token
MODIFY payload json NOT NULL COMMENT '(DC2Type:json_array)',
MODIFY created_information json NOT NULL COMMENT '(DC2Type:json_array)';
SQL);
$this->addSql(<<<SQL
ALTER TABLE yokai_security_token_usage
MODIFY information json NOT NULL COMMENT '(DC2Type:json_array)';
SQL);
}
}