app/DoctrineMigrations/Version20231003070336.php line 1

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace DoctrineMigrations;
  4. use Doctrine\DBAL\Schema\Schema;
  5. use Doctrine\Migrations\AbstractMigration;
  6. use Eccube\Entity\Master\CsvType;
  7. /**
  8.  * Auto-generated Migration: Please modify to your needs!
  9.  */
  10. final class Version20231003070336 extends AbstractMigration
  11. {
  12.     public function getDescription(): string
  13.     {
  14.         return '';
  15.     }
  16.     public function up(Schema $schema): void
  17.     {
  18.         // this up() migration is auto-generated, please modify it to your needs
  19.         $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 ";
  20.         $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]);
  21.     }
  22.     public function down(Schema $schema): void
  23.     {
  24.         // this down() migration is auto-generated, please modify it to your needs
  25.         $this->addSql("DELETE FROM dtb_csv where disp_name = ?", ["カテゴリ画像"]);
  26.     }
  27. }