<?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 Version20220107222320 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('CREATE TABLE insurer_modality (id INT AUTO_INCREMENT NOT NULL, insurer_id INT DEFAULT NULL, modality_id INT DEFAULT NULL, limit_value VARCHAR(255) NOT NULL, INDEX IDX_75E76529895854C7 (insurer_id), INDEX IDX_75E765292D6D889B (modality_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('ALTER TABLE insurer_modality ADD CONSTRAINT FK_75E76529895854C7 FOREIGN KEY (insurer_id) REFERENCES insurer (id)');
$this->addSql('ALTER TABLE insurer_modality ADD CONSTRAINT FK_75E765292D6D889B FOREIGN KEY (modality_id) REFERENCES modality (id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('DROP TABLE insurer_modality');
}
}