<?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 Version20240621073417 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
$this->addSql("INSERT INTO mtb_comment_type (
id, name, sort_no, discriminator_type) VALUES
(1, '出品者', 1, 'commenttype'),
(2, '落札者', 2, 'commenttype'),
(3, '管理者', 3, 'commenttype');
");
}
public function down(Schema $schema): void
{
$this->addSql("DELETE FROM mtb_comment_type WHERE id IN (1, 2, 3)");
}
}