<?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 Version20230807105157 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
$this->addSql("INSERT INTO mtb_chance (id, name, sort_no, discriminator_type) VALUES
(1, '日本の窓ホームページから知った', 1, 'chance'),
(2, '東京組ホームページから知った', 2, 'chance'),
(3, 'ネットでたまたま見つけた', 3, 'chance'),
(4, '雑誌やカタログから知った', 4, 'chance'),
(5, '友人や知り合いからのご紹介', 5, 'chance')
"
);
}
public function down(Schema $schema): void
{
$this->addSql("DELETE FROM mtb_chance WHERE id in (1, 2, 3, 4, 5)");
}
}