<?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 Version20221202105615 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 margin_check_list DROP CONSTRAINT FK_99D6F5CE2FC0CB0F');
$this->addSql('ALTER TABLE margin_check_list ADD CONSTRAINT FK_99D6F5CE2FC0CB0F FOREIGN KEY (transaction_id) REFERENCES abstract_transaction (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('CREATE SCHEMA public');
$this->addSql('ALTER TABLE margin_check_list DROP CONSTRAINT fk_99d6f5ce2fc0cb0f');
$this->addSql('ALTER TABLE margin_check_list ADD CONSTRAINT fk_99d6f5ce2fc0cb0f FOREIGN KEY (transaction_id) REFERENCES transaction (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE');
}
}