<?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 Version20241111013500 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
$target = $this->connection->fetchOne("SELECT id FROM mtb_order_item_type WHERE name = '送料割引' ");
if ($target !== false) return;
$this->addSql("INSERT INTO mtb_order_item_type (id, name, sort_no, discriminator_type) VALUES (17, '送料割引', 16, '送料割引')");
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql("DELETE FROM mtb_order_item_type WHERE id = 17 AND name = '送料割引'");
}
}