app/DoctrineMigrations/Version20240711032015.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. /**
  7.  * Auto-generated Migration: Please modify to your needs!
  8.  */
  9. final class Version20240711032015 extends AbstractMigration
  10. {
  11.     public function getDescription(): string
  12.     {
  13.         return '';
  14.     }
  15.     public function up(Schema $schema): void
  16.     {
  17.         $this->addSql('DELETE FROM dtb_csv WHERE id IN (3,8,10,13,15,17,28,30,224)');
  18.     }
  19.     public function down(Schema $schema): void
  20.     {
  21.         $this->addSql("INSERT INTO dtb_csv (id, csv_type_id, creator_id, entity_name, field_name, reference_field_name, disp_name, sort_no, enabled, create_date, update_date, discriminator_type) VALUES
  22.             (3, 1, NULL, 'Eccube\\\\\\\\Entity\\\\\\\\Product', 'Status', 'name', '公開ステータス(名称)', 8, 1, '2017-03-07 10:14:00', '2017-03-07 10:14:00', 'csv'),
  23.             (8, 1, NULL, 'Eccube\\\\\\\\Entity\\\\\\\\Product', 'Auction', 'name', 'オークション(名称)', 8, 1, '2017-03-07 10:14:00', '2017-03-07 10:14:00', 'csv'),
  24.             (10, 1, NULL, 'Eccube\\\\\\\\Entity\\\\\\\\Product', 'Customer', 'company_name', '出品者(名称)', 10, 1, '2017-03-07 10:14:00', '2017-03-07 10:14:00', 'csv'),
  25.             (13, 1, NULL, 'Eccube\\\\\\\\Entity\\\\\\\\Product', 'ProductMaker', 'name', 'メーカー(名称)', 13, 1, '2017-03-07 10:14:00', '2017-03-07 10:14:00', 'csv'),
  26.             (15, 1, NULL, 'Eccube\\\\\\\\Entity\\\\\\\\Product', 'ProductColor', 'name', '色(名称)', 15, 1, '2017-03-07 10:14:00', '2017-03-07 10:14:00', 'csv'),
  27.             (17, 1, NULL, 'Eccube\\\\\\\\Entity\\\\\\\\Product', 'ProductAccessory', 'name', '付属品(名称)', 17, 1, '2017-03-07 10:14:00', '2017-03-07 10:14:00', 'csv'),
  28.             (28, 1, NULL, 'Eccube\\\\\\\\Entity\\\\\\\\Product', 'ProductCategories', 'Category', '商品カテゴリ(名称)', 17, 1, '2017-03-07 10:14:00', '2017-03-07 10:14:00', 'csv'),
  29.             (30, 1, NULL, 'Eccube\\\\\\\\Entity\\\\\\\\Product', 'ProductTag', 'Tag', 'タグ(名称)', 17, 1, '2017-03-07 10:14:00', '2017-03-07 10:14:00', 'csv'),
  30.             (224, 1, NULL, 'Eccube\\\\\\\\Entity\\\\\\\\Product', 'ProductRank', 'code', 'ランク(コード)', 32, 1, '2017-03-07 10:14:00', '2017-03-07 10:14:00', 'csv');");
  31.     }
  32. }