<?php
declare(strict_types=1);
namespace UtilityBillsBundleMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20240307091233 extends AbstractMigration
{
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('CREATE TABLE utility_bills_bundle__utility_bill_order (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', utility_bill_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', supplier_order_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', INDEX IDX_CFF99CDA36287E91 (utility_bill_id), INDEX IDX_CFF99CDA1605B9 (supplier_order_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('ALTER TABLE utility_bills_bundle__utility_bill_order ADD CONSTRAINT FK_CFF99CDA36287E91 FOREIGN KEY (utility_bill_id) REFERENCES utility_bills_bundle__utility_bill (id)');
$this->addSql('ALTER TABLE utility_bills_bundle__utility_bill_order ADD CONSTRAINT FK_CFF99CDA1605B9 FOREIGN KEY (supplier_order_id) REFERENCES suppliers_orders_bundle__supplier_order (id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE utility_bills_bundle__utility_bill_order DROP FOREIGN KEY FK_CFF99CDA36287E91');
$this->addSql('ALTER TABLE utility_bills_bundle__utility_bill_order DROP FOREIGN KEY FK_CFF99CDA1605B9');
$this->addSql('DROP TABLE utility_bills_bundle__utility_bill_order');
}
}