<?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 Version20240603134751 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
$sql = <<<SQL
INSERT INTO `mtb_estimate_item_type` (`id`, `name`, `sort_no`, `discriminator_type`) VALUES
(1, '商品', 0, 'estimateitemtype'),
(2, '送料', 1, 'estimateitemtype'),
(3, '手数料', 2, 'estimateitemtype'),
(4, '割引', 3, 'estimateitemtype'),
(5, '税', 4, 'estimateitemtype'),
(6, 'ポイント', 5, 'estimateitemtype');
SQL;
$this->addSql($sql);
}
public function down(Schema $schema): void
{
$this->addSql("DELETE FROM `mtb_estimate_item_type` WHERE id IN(1, 2, 3, 4, 5, 6)");
}
}