<?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 Version20240808162410 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
$this->addSql("INSERT INTO `dtb_model_year` (`id`, `name`, `sort_no`, `discriminator_type`)
VALUES
(1, '1950年代', 1, 'modelyear'),
(2, '1960年代', 2, 'modelyear'),
(3, '1970年代', 3, 'modelyear'),
(4, '1980年代', 4, 'modelyear'),
(5, '1990年代', 5, 'modelyear'),
(6, '2000年代', 6, 'modelyear'),
(7, '2010年代', 7, 'modelyear'),
(8, '2020年代', 8, 'modelyear')
;");
}
public function down(Schema $schema): void
{
$this->addSql('DELETE FROM dtb_model_year WHERE id IN (1,2,3,4,5,6,7,8)');
}
}