<?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 Version20220118124448 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 offer (id INT AUTO_INCREMENT NOT NULL, society_id INT NOT NULL, title VARCHAR(191) NOT NULL, min_tjm INT DEFAULT NULL, max_tjm INT DEFAULT NULL, open_society TINYINT(1) NOT NULL, location VARCHAR(191) NOT NULL, description LONGTEXT NOT NULL, duration_value INT NOT NULL, duration_type VARCHAR(191) NOT NULL, mode_remote VARCHAR(191) NOT NULL, year_required VARCHAR(191) NOT NULL, show_coordinate TINYINT(1) DEFAULT NULL, INDEX IDX_29D6873EE6389D24 (society_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('ALTER TABLE offer ADD CONSTRAINT FK_29D6873EE6389D24 FOREIGN KEY (society_id) REFERENCES society (id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('DROP TABLE offer');
}
}