<?php
declare(strict_types=1);
namespace SalesBundleMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20231226085012 extends AbstractMigration
{
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE sales_bundle__payment_method ADD bank_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\'');
$this->addSql('ALTER TABLE sales_bundle__payment_method ADD CONSTRAINT FK_69C1A5D611C8FB41 FOREIGN KEY (bank_id) REFERENCES sales_bundle__bank (id)');
$this->addSql('CREATE INDEX IDX_69C1A5D611C8FB41 ON sales_bundle__payment_method (bank_id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE sales_bundle__payment_method DROP FOREIGN KEY FK_69C1A5D611C8FB41');
$this->addSql('DROP INDEX IDX_69C1A5D611C8FB41 ON sales_bundle__payment_method');
$this->addSql('ALTER TABLE sales_bundle__payment_method DROP bank_id');
}
}