<?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 Version20220114011540 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 address DROP deleted_at');
$this->addSql('ALTER TABLE chamber DROP deleted_at');
$this->addSql('ALTER TABLE file DROP deleted_at');
$this->addSql('ALTER TABLE formation DROP deleted_at');
$this->addSql('ALTER TABLE formation_kind DROP deleted_at');
$this->addSql('ALTER TABLE framework DROP deleted_at');
$this->addSql('ALTER TABLE grade DROP FOREIGN KEY FK_595AAE34727ACA70');
$this->addSql('ALTER TABLE grade DROP deleted_at');
$this->addSql('ALTER TABLE grade ADD CONSTRAINT FK_595AAE34727ACA70 FOREIGN KEY (parent_id) REFERENCES grade (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE grade_file DROP FOREIGN KEY FK_22FD7B00FE19A1A8');
$this->addSql('ALTER TABLE grade_file ADD CONSTRAINT FK_22FD7B00FE19A1A8 FOREIGN KEY (grade_id) REFERENCES grade (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE gtc_page DROP deleted_at');
$this->addSql('ALTER TABLE judge_card DROP deleted_at');
$this->addSql('ALTER TABLE judge_family DROP deleted_at');
$this->addSql('ALTER TABLE judge_information DROP deleted_at');
$this->addSql('ALTER TABLE judgement_customers DROP FOREIGN KEY FK_3FC9CCC19395C3F3');
$this->addSql('ALTER TABLE judgement_customers DROP FOREIGN KEY FK_3FC9CCC1B63A6766');
$this->addSql('ALTER TABLE judgement_customers ADD CONSTRAINT FK_3FC9CCC19395C3F3 FOREIGN KEY (customer_id) REFERENCES customer (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE judgement_customers ADD CONSTRAINT FK_3FC9CCC1B63A6766 FOREIGN KEY (judgement_project_id) REFERENCES judgement_project (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE menu_category DROP deleted_at');
$this->addSql('ALTER TABLE menu_category_item DROP FOREIGN KEY FK_32430ACF727ACA70');
$this->addSql('ALTER TABLE menu_category_item DROP deleted_at');
$this->addSql('ALTER TABLE menu_category_item ADD CONSTRAINT FK_32430ACF727ACA70 FOREIGN KEY (parent_id) REFERENCES menu_category (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE news DROP deleted_at');
$this->addSql('ALTER TABLE notification DROP deleted_at');
$this->addSql('ALTER TABLE organization DROP deleted_at');
$this->addSql('ALTER TABLE password_link DROP created_at, DROP deleted_at');
$this->addSql('ALTER TABLE person DROP deleted_at');
$this->addSql('ALTER TABLE promotion DROP deleted_at');
$this->addSql('ALTER TABLE role DROP deleted_at');
$this->addSql('ALTER TABLE sheet DROP FOREIGN KEY FK_873C91E2FE19A1A8');
$this->addSql('ALTER TABLE sheet DROP deleted_at');
$this->addSql('ALTER TABLE sheet ADD CONSTRAINT FK_873C91E2FE19A1A8 FOREIGN KEY (grade_id) REFERENCES grade (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE sheet_file DROP FOREIGN KEY FK_DFE1460D8B1206A5');
$this->addSql('ALTER TABLE sheet_file ADD CONSTRAINT FK_DFE1460D8B1206A5 FOREIGN KEY (sheet_id) REFERENCES sheet (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE sheet_tag DROP FOREIGN KEY FK_CE6A9A718B1206A5');
$this->addSql('ALTER TABLE sheet_tag ADD CONSTRAINT FK_CE6A9A718B1206A5 FOREIGN KEY (sheet_id) REFERENCES sheet (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE status DROP deleted_at');
$this->addSql('ALTER TABLE tag DROP deleted_at');
$this->addSql('ALTER TABLE user_group DROP deleted_at');
$this->addSql('ALTER TABLE group_role DROP FOREIGN KEY FK_7E33D11AD60322AC');
$this->addSql('ALTER TABLE group_role DROP FOREIGN KEY FK_7E33D11AFE54D947');
$this->addSql('ALTER TABLE group_role ADD CONSTRAINT FK_7E33D11AD60322AC FOREIGN KEY (role_id) REFERENCES role (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE group_role ADD CONSTRAINT FK_7E33D11AFE54D947 FOREIGN KEY (group_id) REFERENCES user_group (id) ON DELETE CASCADE');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
}
}