<?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 Version20211111120615 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 offer_job ADD type_of_job_id INT NOT NULL');
$this->addSql('ALTER TABLE offer_job ADD CONSTRAINT FK_D7ED8160A82EC4A3 FOREIGN KEY (type_of_job_id) REFERENCES type_of_job (id)');
$this->addSql('CREATE INDEX IDX_D7ED8160A82EC4A3 ON offer_job (type_of_job_id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE offer_job DROP FOREIGN KEY FK_D7ED8160A82EC4A3');
$this->addSql('DROP INDEX IDX_D7ED8160A82EC4A3 ON offer_job');
$this->addSql('ALTER TABLE offer_job DROP type_of_job_id');
}
}