<?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 Version20230517070231 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE sample DROP FOREIGN KEY FK_F10B76C3AEB32CA2');
$this->addSql('DROP INDEX UNIQ_F10B76C3AEB32CA2 ON sample');
$this->addSql('ALTER TABLE sample DROP FOREIGN KEY FK_F10B76C32C944544');
$this->addSql('DROP INDEX UNIQ_F10B76C32C944544 ON sample');
$this->addSql('ALTER TABLE sample ADD CONSTRAINT FK_F10B76C3AEB32CA2 FOREIGN KEY (inbound_address_id) REFERENCES address (id)');
$this->addSql('ALTER TABLE sample ADD CONSTRAINT FK_F10B76C32C944544 FOREIGN KEY (outbound_address_id) REFERENCES address (id)');
$this->addSql('ALTER TABLE invoice DROP FOREIGN KEY FK_9065174471A12A28');
$this->addSql('ALTER TABLE invoice DROP FOREIGN KEY FK_90651744EBF23851');
$this->addSql('DROP INDEX UNIQ_9065174471A12A28 ON invoice');
$this->addSql('DROP INDEX UNIQ_90651744EBF23851 ON invoice');
$this->addSql('ALTER TABLE invoice ADD CONSTRAINT FK_9065174471A12A28 FOREIGN KEY (sender_address_id) REFERENCES address (id)');
$this->addSql('ALTER TABLE invoice ADD CONSTRAINT FK_90651744EBF23851 FOREIGN KEY (delivery_address_id) REFERENCES address (id)');
}
public function down(Schema $schema): void
{}
}