app/DoctrineMigrations/Version20240808160350.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 Version20240808160350 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_other_musical_instrument` (`id`, `name`, `sort_no`, `discriminator_type`)
  18.             VALUES
  19.             (1, 'ブランド', 1, 'othermusicalinstrument'),
  20.             (2, '時計', 2, 'othermusicalinstrument'),
  21.             (3, '道具', 3, 'othermusicalinstrument'),
  22.             (4, 'お酒', 4, 'othermusicalinstrument'),
  23.             (5, 'おもちゃ', 5, 'othermusicalinstrument'),
  24.             (6, 'くつ', 6, 'othermusicalinstrument'),
  25.             (7, '本', 7, 'othermusicalinstrument'),
  26.             (8, '骨董', 8, 'othermusicalinstrument'),
  27.             (9, '掛軸', 9, 'othermusicalinstrument'),
  28.             (10, '絵画', 10, 'othermusicalinstrument'),
  29.             (11, 'リトグラフ', 11, 'othermusicalinstrument'),
  30.             (12, '家具', 12, 'othermusicalinstrument'),
  31.             (13, '家電', 13, 'othermusicalinstrument')
  32.             ;");
  33.     }
  34.     public function down(Schema $schema): void
  35.     {
  36.         $this->addSql('DELETE FROM dtb_other_musical_instrument WHERE id IN (1,2,3,4,5,6,7,8,9,10,11,12,13)');
  37.     }
  38. }