app/DoctrineMigrations/Version20240620072145.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 Version20240620072145 extends AbstractMigration
  10. {
  11.     public function getDescription(): string
  12.     {
  13.         return '';
  14.     }
  15.     public function up(Schema $schema): void
  16.     {
  17.         $this->addSql("SET foreign_key_checks = 0;");
  18.         $this->addSql("TRUNCATE `plg_productoption_dtb_material`");
  19.         $this->addSql("SET foreign_key_checks = 1;");
  20.         $this->addSql("
  21.         INSERT INTO `plg_productoption_dtb_material` (`id`, `sticker_type`, `name`, `backend_name`, `high_limit_long_side`, `high_limit_short_side`, `low_limit_long_side`, `low_limit_short_side`, `sort_no`, `discriminator_type`, `description`, `pricedisp_flg`, `description_flg`, `is_required`, `create_date`, `update_date`) VALUES
  22.         (1, 'print', 'グロスホワイト', 'グロスホワイト', 180.0, 60.0, 1.5, 0.5, 1, 'material', NULL, 0, 0, 0, '2024-04-19 08:02:20', '2024-06-19 02:07:39'),
  23.         (2, 'print', 'マットホワイト', 'マットホワイト', 180.0, 60.0, 1.5, 0.5, 2, 'material', NULL, 0, 0, 0, '2024-04-19 08:19:38', '2024-06-19 02:08:14'),
  24.         (3, 'print', '透明フィルム', '透明フィルム', 180.0, 60.0, 1.5, 0.5, 3, 'material', NULL, 0, 0, 0, '2024-04-19 08:20:02', '2024-06-19 02:08:32'),
  25.         (4, 'print', '反射フィルム', '反射フィルム', 100.0, 56.0, 1.5, 0.5, 4, 'material', NULL, 0, 0, 0, '2024-04-19 08:31:49', '2024-06-19 02:09:01'),
  26.         (5, 'print', 'ヘアライン', 'ヘアライン', 100.0, 60.0, 1.5, 0.5, 5, 'material', NULL, 0, 0, 0, '2024-04-19 09:03:24', '2024-06-19 02:11:46'),
  27.         (6, 'print', 'ミラーメタリック', 'ミラーメタリック', 60.0, 60.0, 1.5, 0.5, 6, 'material', NULL, 0, 0, 0, '2024-04-19 09:03:43', '2024-06-19 02:12:27'),
  28.         (7, 'print', 'マットメタリック', 'マットメタリック', 60.0, 60.0, 1.5, 0.5, 7, 'material', NULL, 0, 0, 0, '2024-04-19 09:04:02', '2024-06-19 02:12:48'),
  29.         (8, 'cutting', '一般色', '一般色', 200.0, 70.0, NULL, NULL, 8, 'material', NULL, 0, NULL, 0, '2024-04-20 01:48:21', '2024-04-20 08:14:58'),
  30.         (9, 'cutting', 'メタリック', 'メタリック', 200.0, 70.0, NULL, NULL, 9, 'material', NULL, 0, NULL, 0, '2024-04-20 06:09:19', '2024-04-20 08:14:58'),
  31.         (10, 'cutting', 'ラメ', 'ラメ', 200.0, 55.0, NULL, NULL, 10, 'material', NULL, 0, NULL, 0, '2024-04-20 06:09:47', '2024-04-20 08:14:58'),
  32.         (11, 'cutting', 'ミラー', 'ミラー', 200.0, 60.0, NULL, NULL, 11, 'material', NULL, 0, NULL, 0, '2024-04-20 06:10:07', '2024-04-20 08:14:58'),
  33.         (12, 'cutting', '反射', '反射', 200.0, 60.0, NULL, NULL, 12, 'material', NULL, 0, NULL, 0, '2024-04-20 06:54:57', '2024-04-20 08:14:58'),
  34.         (13, 'cutting', 'ガラス内側から貼る', 'ガラス内側から貼る', 200.0, 70.0, NULL, NULL, 13, 'material', NULL, 0, NULL, 0, '2024-04-20 07:00:38', '2024-04-20 08:14:58');
  35.         ");
  36.     }
  37.     public function down(Schema $schema): void
  38.     {
  39.         // this down() migration is auto-generated, please modify it to your needs
  40.     }
  41. }