app/DoctrineMigrations/Version20240705072439.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 Version20240705072439 extends AbstractMigration
  10. {
  11.     public function getDescription(): string
  12.     {
  13.         return '';
  14.     }
  15.     public function up(Schema $schema): void
  16.     {
  17.         $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
  18.             (6, 1, NULL, 'Eccube\\\\\\\\Entity\\\\\\\\Product', 'Auction', 'id', 'オークション(ID)', 6, 1, '2017-03-07 10:14:00', '2017-03-07 10:14:00', 'csv'),
  19.             (8, 1, NULL, 'Eccube\\\\\\\\Entity\\\\\\\\Product', 'Auction', 'name', 'オークション(名称)', 8, 1, '2017-03-07 10:14:00', '2017-03-07 10:14:00', 'csv'),
  20.             (9, 1, NULL, 'Eccube\\\\\\\\Entity\\\\\\\\Product', 'Customer', 'id', '出品者(ID)', 9, 1, '2017-03-07 10:14:00', '2017-03-07 10:14:00', 'csv'),
  21.             (10, 1, NULL, 'Eccube\\\\\\\\Entity\\\\\\\\Product', 'Customer', 'company_name', '出品者(名称)', 10, 1, '2017-03-07 10:14:00', '2017-03-07 10:14:00', 'csv'),
  22.             (11, 1, NULL, 'Eccube\\\\\\\\Entity\\\\\\\\Product', 'product_number', NULL, '商品番号', 11, 1, '2017-03-07 10:14:00', '2017-03-07 10:14:00', 'csv'),
  23.             (12, 1, NULL, 'Eccube\\\\\\\\Entity\\\\\\\\Product', 'ProductMaker', 'id', 'メーカー(ID)', 12, 1, '2017-03-07 10:14:00', '2017-03-07 10:14:00', 'csv'),
  24.             (13, 1, NULL, 'Eccube\\\\\\\\Entity\\\\\\\\Product', 'ProductMaker', 'name', 'メーカー(名称)', 13, 1, '2017-03-07 10:14:00', '2017-03-07 10:14:00', 'csv'),
  25.             (14, 1, NULL, 'Eccube\\\\\\\\Entity\\\\\\\\Product', 'ProductColor', 'id', '色(ID)', 14, 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.             (16, 1, NULL, 'Eccube\\\\\\\\Entity\\\\\\\\Product', 'ProductAccessory', 'id', '付属品(ID)', 16, 1, '2017-03-07 10:14:00', '2017-03-07 10:14:00', 'csv'),
  28.             (17, 1, NULL, 'Eccube\\\\\\\\Entity\\\\\\\\Product', 'ProductAccessory', 'name', '付属品(名称)', 17, 1, '2017-03-07 10:14:00', '2017-03-07 10:14:00', 'csv'),
  29.             (18, 1, NULL, 'Eccube\\\\\\\\Entity\\\\\\\\Product', 'model_number', NULL, '型番', 18, 1, '2017-03-07 10:14:00', '2017-03-07 10:14:00', 'csv'),
  30.             (19, 1, NULL, 'Eccube\\\\\\\\Entity\\\\\\\\Product', 'model_year', NULL, '年式', 19, 1, '2017-03-07 10:14:00', '2017-03-07 10:14:00', 'csv'),
  31.             (20, 1, NULL, 'Eccube\\\\\\\\Entity\\\\\\\\Product', 'size', NULL, 'サイズ', 20, 1, '2017-03-07 10:14:00', '2017-03-07 10:14:00', 'csv'),
  32.             (21, 1, NULL, 'Eccube\\\\\\\\Entity\\\\\\\\Product', 'weight', NULL, '重量', 21, 1, '2017-03-07 10:14:00', '2017-03-07 10:14:00', 'csv'),
  33.             (24, 1, NULL, 'Eccube\\\\\\\\Entity\\\\\\\\Product', 'limit_price', NULL, '指値', 24, 1, '2017-03-07 10:14:00', '2017-03-07 10:14:00', 'csv'),
  34.             (25, 1, NULL, 'Eccube\\\\\\\\Entity\\\\\\\\Product', 'start_bit_price', NULL, '開始金額', 25, 1, '2017-03-07 10:14:00', '2017-03-07 10:14:00', 'csv'),
  35.             (223, 1, NULL, 'Eccube\\\\\\\\Entity\\\\\\\\Product', 'ProductRank', 'id', 'ランク(ID)', 31, 1, '2017-03-07 10:14:00', '2017-03-07 10:14:00', 'csv'),
  36.             (224, 1, NULL, 'Eccube\\\\\\\\Entity\\\\\\\\Product', 'ProductRank', 'code', 'ランク(コード)', 32, 1, '2017-03-07 10:14:00', '2017-03-07 10:14:00', 'csv');
  37.         ");
  38.     }
  39.     public function down(Schema $schema): void
  40.     {
  41.         $this->addSql('DELETE FROM dtb_csv WHERE id IN (6,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,223,224)');
  42.     }
  43. }