<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
use Eccube\Entity\Master\CsvType;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20231003070336 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
$insert_block = "INSERT INTO dtb_csv (csv_type_id, entity_name, field_name, disp_name, sort_no, enabled, create_date, update_date, discriminator_type) VALUES ";
$this->addSql($insert_block . "(?, 'Eccube\\\\Entity\\\\Category', 'image', 'カテゴリ画像', 22, 1, '2022-10-27 10:14:00', '2022-10-27 10:14:00', 'csv' );", [CsvType::CSV_TYPE_CATEGORY]);
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql("DELETE FROM dtb_csv where disp_name = ?", ["カテゴリ画像"]);
}
}