<?php
declare(strict_types=1);
namespace Boldr\Cms\CmsBundle\Migrations;
use Doctrine\DBAL\Schema\Schema;
use Boldr\Cms\CmsBundle\BoldrCmsMigration;
final class Version1__24_0 extends BoldrCmsMigration
{
public function getBundle(): string { return 'boldr/cms-bundle'; }
public function getVersion(): ?string { return '1.24.0'; }
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE cms_upload ADD derivatives_enqueued TINYINT(1) DEFAULT \'0\' NOT NULL');
$this->addSql('UPDATE cms_upload SET derivatives_enqueued = (enqueued_derivatives IS NOT NULL AND enqueued_derivatives != CAST(\'[]\' AS json))');
}
}