<?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 Version20220204075921 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 inquiry_recruit (id INT AUTO_INCREMENT NOT NULL, birthday DATE DEFAULT NULL, gender VARCHAR(4) DEFAULT NULL, email VARCHAR(255) NOT NULL, ip VARCHAR(32) NOT NULL, token VARCHAR(80) DEFAULT NULL, send_at DATETIME DEFAULT NULL, name VARCHAR(32) NOT NULL, message LONGTEXT DEFAULT NULL, kana VARCHAR(48) DEFAULT NULL, phone VARCHAR(24) DEFAULT NULL, postal1 VARCHAR(3) DEFAULT NULL, postal2 VARCHAR(4) DEFAULT NULL, addr_pref VARCHAR(8) DEFAULT NULL, addr_city VARCHAR(24) DEFAULT NULL, addr_town VARCHAR(48) DEFAULT NULL, addr_build VARCHAR(48) DEFAULT NULL, created_at DATETIME DEFAULT NULL, updated_at DATETIME DEFAULT NULL, deleted_at DATETIME DEFAULT NULL, UNIQUE INDEX UNIQ_FB7644CA5F37A13B (token), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE inquiry_recruit_history (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(64) DEFAULT NULL, content LONGTEXT DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE inquiry_recruit_qualification (id INT AUTO_INCREMENT NOT NULL, year INT DEFAULT NULL, month INT DEFAULT NULL, name VARCHAR(255) DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('DROP TABLE inquiry_recruit');
$this->addSql('DROP TABLE inquiry_recruit_history');
$this->addSql('DROP TABLE inquiry_recruit_qualification');
}
}