<?php
declare(strict_types=1);
namespace RecurringInvoicesBundleMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20240710080251 extends AbstractMigration
{
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE recurring_invoices_bundle__recurring_invoice ADD recurring_invoice_merged_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\'');
$this->addSql('ALTER TABLE recurring_invoices_bundle__recurring_invoice ADD CONSTRAINT FK_6B9712E9F2B22E0 FOREIGN KEY (recurring_invoice_merged_id) REFERENCES recurring_invoices_bundle__recurring_invoice (id)');
$this->addSql('CREATE INDEX IDX_6B9712E9F2B22E0 ON recurring_invoices_bundle__recurring_invoice (recurring_invoice_merged_id)');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE recurring_invoices_bundle__recurring_invoice DROP FOREIGN KEY FK_6B9712E9F2B22E0');
$this->addSql('DROP INDEX IDX_6B9712E9F2B22E0 ON recurring_invoices_bundle__recurring_invoice');
$this->addSql('ALTER TABLE recurring_invoices_bundle__recurring_invoice DROP recurring_invoice_merged_id');
}
}