<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20220822082823 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE ac_activities CHANGE context context LONGTEXT NOT NULL COMMENT \'(DC2Type:json)\', CHANGE payload payload LONGTEXT DEFAULT NULL COMMENT \'(DC2Type:json)\'');
$this->addSql('ALTER TABLE pr_preview_links CHANGE options options LONGTEXT NOT NULL COMMENT \'(DC2Type:json)\'');
$this->addSql('ALTER TABLE property ADD enabled TINYINT(1) DEFAULT NULL');
$this->addSql('ALTER TABLE se_role_settings CHANGE value value LONGTEXT NOT NULL COMMENT \'(DC2Type:json)\'');
$this->addSql('ALTER TABLE tr_trash_items CHANGE restoreData restoreData LONGTEXT NOT NULL COMMENT \'(DC2Type:json)\', CHANGE restoreOptions restoreOptions LONGTEXT NOT NULL COMMENT \'(DC2Type:json)\'');
$this->addSql('ALTER TABLE we_analytics CHANGE content content LONGTEXT NOT NULL COMMENT \'(DC2Type:json)\'');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE ac_activities CHANGE context context LONGTEXT NOT NULL COLLATE `utf8mb4_bin`, CHANGE payload payload LONGTEXT DEFAULT NULL COLLATE `utf8mb4_bin`');
$this->addSql('ALTER TABLE property DROP enabled');
$this->addSql('ALTER TABLE pr_preview_links CHANGE options options LONGTEXT NOT NULL COLLATE `utf8mb4_bin`');
$this->addSql('ALTER TABLE se_role_settings CHANGE value value LONGTEXT NOT NULL COLLATE `utf8mb4_bin`');
$this->addSql('ALTER TABLE tr_trash_items CHANGE restoreData restoreData LONGTEXT NOT NULL COLLATE `utf8mb4_bin`, CHANGE restoreOptions restoreOptions LONGTEXT NOT NULL COLLATE `utf8mb4_bin`');
$this->addSql('ALTER TABLE we_analytics CHANGE content content LONGTEXT NOT NULL COLLATE `utf8mb4_bin`');
}
}