<?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 Version20240402151158 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE invitation_facturier_to_professional ADD from_facturier_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\'');
$this->addSql('ALTER TABLE invitation_facturier_to_professional ADD CONSTRAINT FK_56CD91683E613D5F FOREIGN KEY (from_facturier_id) REFERENCES `professional` (id)');
$this->addSql('CREATE INDEX IDX_56CD91683E613D5F ON invitation_facturier_to_professional (from_facturier_id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE invitation_facturier_to_professional DROP FOREIGN KEY FK_56CD91683E613D5F');
$this->addSql('DROP INDEX IDX_56CD91683E613D5F ON invitation_facturier_to_professional');
$this->addSql('ALTER TABLE invitation_facturier_to_professional DROP from_facturier_id');
}
}