<?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 Version20230205174244 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 log_entry (id INT AUTO_INCREMENT NOT NULL, course_id INT DEFAULT NULL, organizer_id INT DEFAULT NULL, applicant_id INT DEFAULT NULL, message LONGTEXT NOT NULL, type VARCHAR(32) NOT NULL, INDEX IDX_B5F762D591CC992 (course_id), INDEX IDX_B5F762D876C4DDA (organizer_id), INDEX IDX_B5F762D97139001 (applicant_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
// $this->addSql('ALTER TABLE log_entry ADD CONSTRAINT FK_B5F762D591CC992 FOREIGN KEY (course_id) REFERENCES course (id)');
// $this->addSql('ALTER TABLE log_entry ADD CONSTRAINT FK_B5F762D876C4DDA FOREIGN KEY (organizer_id) REFERENCES organizer (id)');
// $this->addSql('ALTER TABLE log_entry ADD CONSTRAINT FK_B5F762D97139001 FOREIGN KEY (applicant_id) REFERENCES applicant (id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
}
}