<?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 Version20211113222807 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 event_jobseeker (id INT AUTO_INCREMENT NOT NULL, jobseeker_id INT NOT NULL, event_id INT NOT NULL, created_at DATETIME NOT NULL, INDEX IDX_8EACE5224CF2B5A9 (jobseeker_id), INDEX IDX_8EACE52271F7E88B (event_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('ALTER TABLE event_jobseeker ADD CONSTRAINT FK_8EACE5224CF2B5A9 FOREIGN KEY (jobseeker_id) REFERENCES jobseeker (id)');
$this->addSql('ALTER TABLE event_jobseeker ADD CONSTRAINT FK_8EACE52271F7E88B FOREIGN KEY (event_id) REFERENCES event (id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('DROP TABLE event_jobseeker');
}
}