<?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 Version20240610210211 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 ADD establishment_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\'');
$this->addSql('ALTER TABLE sales_bundle__payment ADD CONSTRAINT FK_46C1B8058565851 FOREIGN KEY (establishment_id) REFERENCES establishment (id)');
$this->addSql('CREATE INDEX IDX_46C1B8058565851 ON sales_bundle__payment (establishment_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 DROP FOREIGN KEY FK_46C1B8058565851');
$this->addSql('DROP INDEX IDX_46C1B8058565851 ON sales_bundle__payment');
$this->addSql('ALTER TABLE sales_bundle__payment DROP establishment_id');
}
}