app/DoctrineMigrations/Version20240604114732.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 Version20240604114732 extends AbstractMigration
  10. {
  11.     public function getDescription(): string
  12.     {
  13.         return '';
  14.     }
  15.     public function up(Schema $schema): void
  16.     {
  17.         // this up() migration is auto-generated, please modify it to your needs
  18.         $sql = <<<SQL
  19.             INSERT INTO `mtb_estimate_item_type` (`id`, `name`, `sort_no`, `discriminator_type`) VALUES
  20.             (7, 'カッティングステッカー基本加工手数料', 6, 'estimateitemtype'),
  21.             (8, 'データ変換', 7, 'estimateitemtype'),
  22.             (9, '書体サンプル加工', 8, 'estimateitemtype'),
  23.             (10, 'データ修正・加工', 9, 'estimateitemtype'),
  24.             (11, 'デザイン清書', 10, 'estimateitemtype'),
  25.             (12, 'データ納品', 11, 'estimateitemtype'),
  26.             (13, 'デザイン考案', 12, 'estimateitemtype'),
  27.             (14, 'スキージー・マスキングのセット', 13, 'estimateitemtype'),
  28.             (15, 'スキージー', 14, 'estimateitemtype'),
  29.             (16, '材料取り寄せ', 15, 'estimateitemtype');
  30.         SQL;
  31.         $this->addSql($sql);
  32.     }
  33.     public function down(Schema $schema): void
  34.     {
  35.         $this->addSql("DELETE FROM `mtb_estimate_item_type` WHERE id IN(7, 8, 9, 10, 11, 12, 13, 14, 15, 16)");
  36.     }
  37. }