<?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 Version20220119174224 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 ca_category_translation_keywords DROP FOREIGN KEY FK_D15FBE3717CA14DA');
$this->addSql('ALTER TABLE ca_category_translation_keywords DROP FOREIGN KEY FK_D15FBE37F9FC9F05');
$this->addSql('ALTER TABLE ca_category_translation_keywords ADD CONSTRAINT FK_D15FBE3717CA14DA FOREIGN KEY (idCategoryTranslations) REFERENCES ca_category_translations (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE ca_category_translation_keywords ADD CONSTRAINT FK_D15FBE37F9FC9F05 FOREIGN KEY (idKeywords) REFERENCES ca_keywords (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE pr_preview_links RENAME INDEX uniq_9a45bd685f37a13b TO UNIQ_EFB5DBF25F37A13B');
$this->addSql('ALTER TABLE se_access_controls ADD entityIdInteger INT DEFAULT NULL');
$this->addSql('CREATE INDEX IDX_C526DC524473BB7A ON se_access_controls (entityIdInteger)');
$this->addSql('ALTER TABLE se_role_settings CHANGE value value JSON NOT NULL');
$this->addSql('ALTER TABLE we_analytics CHANGE content content JSON NOT NULL');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE ca_category_translation_keywords DROP FOREIGN KEY FK_D15FBE37F9FC9F05');
$this->addSql('ALTER TABLE ca_category_translation_keywords DROP FOREIGN KEY FK_D15FBE3717CA14DA');
$this->addSql('ALTER TABLE ca_category_translation_keywords ADD CONSTRAINT FK_D15FBE37F9FC9F05 FOREIGN KEY (idKeywords) REFERENCES ca_keywords (id) ON UPDATE NO ACTION ON DELETE NO ACTION');
$this->addSql('ALTER TABLE ca_category_translation_keywords ADD CONSTRAINT FK_D15FBE3717CA14DA FOREIGN KEY (idCategoryTranslations) REFERENCES ca_category_translations (id) ON UPDATE NO ACTION ON DELETE NO ACTION');
$this->addSql('ALTER TABLE pr_preview_links RENAME INDEX uniq_efb5dbf25f37a13b TO UNIQ_9A45BD685F37A13B');
$this->addSql('DROP INDEX IDX_C526DC524473BB7A ON se_access_controls');
$this->addSql('ALTER TABLE se_access_controls DROP entityIdInteger');
$this->addSql('ALTER TABLE se_role_settings CHANGE value value JSON NOT NULL COMMENT \'(DC2Type:json_array)\'');
$this->addSql('ALTER TABLE we_analytics CHANGE content content JSON NOT NULL COMMENT \'(DC2Type:json_array)\'');
}
}