app/DoctrineMigrations/Version20240718033747.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 Version20240718033747 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 `mtb_order_item_type`");
  18.         $sql = <<<SQL
  19.             INSERT INTO `mtb_order_item_type` (`id`, `name`, `sort_no`, `discriminator_type`) VALUES
  20.             (1, '商品', 0, 'estimateitemtype'),
  21.             (2, '送料', 1, 'estimateitemtype'),
  22.             (3, '手数料', 2, 'estimateitemtype'),
  23.             (4, '割引', 3, 'estimateitemtype'),
  24.             (5, '税', 4, 'estimateitemtype'),
  25.             (6, 'ポイント', 5, 'estimateitemtype'),
  26.             (7, 'カッティングステッカー基本加工手数料', 6, 'estimateitemtype'),
  27.             (8, 'データ変換', 7, 'estimateitemtype'),
  28.             (9, '書体サンプル加工', 8, 'estimateitemtype'),
  29.             (10, 'データ修正・加工', 9, 'estimateitemtype'),
  30.             (11, 'デザイン清書', 10, 'estimateitemtype'),
  31.             (12, 'データ納品', 11, 'estimateitemtype'),
  32.             (13, 'デザイン考案', 12, 'estimateitemtype'),
  33.             (14, 'スキージー・マスキングのセット', 13, 'estimateitemtype'),
  34.             (15, 'スキージー', 14, 'estimateitemtype'),
  35.             (16, '材料取り寄せ', 15, 'estimateitemtype');
  36.         SQL;
  37.         $this->addSql($sql);
  38.     }
  39.     public function down(Schema $schema): void
  40.     {
  41.     }
  42. }