<?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 Version20251110140940 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 job_company_import_mapping (id INT AUTO_INCREMENT NOT NULL, job_id INT DEFAULT NULL, lb_nr INT DEFAULT NULL, lb_name VARCHAR(255) DEFAULT NULL, module_nr INT DEFAULT NULL, module_name VARCHAR(255) DEFAULT NULL, INDEX IDX_E2462258BE04EA9 (job_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('ALTER TABLE job_company_import_mapping ADD CONSTRAINT FK_E2462258BE04EA9 FOREIGN KEY (job_id) REFERENCES job (id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE job_company_import_mapping DROP FOREIGN KEY FK_E2462258BE04EA9');
$this->addSql('DROP TABLE job_company_import_mapping');
}
}