<?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 Version20240103154919 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 notification_comment (id INT AUTO_INCREMENT NOT NULL, professional_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', patient_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', INDEX IDX_816AD8DBDB77003 (professional_id), UNIQUE INDEX UNIQ_816AD8DB6B899279 (patient_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('ALTER TABLE notification_comment ADD CONSTRAINT FK_816AD8DBDB77003 FOREIGN KEY (professional_id) REFERENCES `professional` (id)');
$this->addSql('ALTER TABLE notification_comment ADD CONSTRAINT FK_816AD8DB6B899279 FOREIGN KEY (patient_id) REFERENCES `patient` (id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('DROP TABLE notification_comment');
}
}