app/DoctrineMigrations/Version20240227082935.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 Version20240227082935 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.         $this->addSql(
  19.             'INSERT INTO dtb_holiday (date,name,discriminator_type) VALUES
  20.             (\'2023-01-01\', \'元日\',\'holiday\'),
  21.             (\'2023-01-02\', \'振替休日\',\'holiday\'),
  22.             (\'2023-01-09\', \'成人の日\',\'holiday\'),
  23.             (\'2023-02-11\', \'建国記念の日\',\'holiday\'),
  24.             (\'2023-02-23\', \'天皇誕生日\',\'holiday\'),
  25.             (\'2023-03-21\', \'春分の日\',\'holiday\'),
  26.             (\'2023-04-29\', \'昭和の日\',\'holiday\'),
  27.             (\'2023-05-03\', \'憲法記念日\',\'holiday\'),
  28.             (\'2023-05-04\', \'みどりの日\',\'holiday\'),
  29.             (\'2023-05-05\', \'こどもの日\',\'holiday\'),
  30.             (\'2023-07-17\', \'海の日\',\'holiday\'),
  31.             (\'2023-08-11\', \'山の日\',\'holiday\'),
  32.             (\'2023-09-18\', \'敬老の日\',\'holiday\'),
  33.             (\'2023-09-23\', \'秋分の日\',\'holiday\'),
  34.             (\'2023-10-09\', \'スポーツの日\',\'holiday\'),
  35.             (\'2023-11-03\', \'文化の日\',\'holiday\'),
  36.             (\'2023-11-23\', \'勤労感謝の日\',\'holiday\'),
  37.             (\'2024-01-01\', \'元日\',\'holiday\'),
  38.             (\'2024-01-08\', \'成人の日\',\'holiday\'),
  39.             (\'2024-02-11\', \'建国記念の日\',\'holiday\'),
  40.             (\'2024-02-12\', \'振替休日\',\'holiday\'),
  41.             (\'2024-02-23\', \'天皇誕生日\',\'holiday\'),
  42.             (\'2024-03-20\', \'春分の日\',\'holiday\'),
  43.             (\'2024-04-29\', \'昭和の日\',\'holiday\'),
  44.             (\'2024-05-03\', \'憲法記念日\',\'holiday\'),
  45.             (\'2024-05-04\', \'みどりの日\',\'holiday\'),
  46.             (\'2024-05-05\', \'こどもの日\',\'holiday\'),
  47.             (\'2024-05-06\', \'振替休日\',\'holiday\'),
  48.             (\'2024-07-15\', \'海の日\',\'holiday\'),
  49.             (\'2024-08-11\', \'山の日\',\'holiday\'),
  50.             (\'2024-08-12\', \'振替休日\',\'holiday\'),
  51.             (\'2024-09-16\', \'敬老の日\',\'holiday\'),
  52.             (\'2024-09-22\', \'秋分の日\',\'holiday\'),
  53.             (\'2024-09-23\', \'振替休日\',\'holiday\'),
  54.             (\'2024-10-14\', \'スポーツの日\',\'holiday\'),
  55.             (\'2024-11-03\', \'文化の日\',\'holiday\'),
  56.             (\'2024-11-04\', \'振替休日\',\'holiday\'),
  57.             (\'2024-11-23\', \'勤労感謝の日\',\'holiday\'),
  58.             (\'2025-01-01\', \'元日\',\'holiday\'),
  59.             (\'2025-01-13\', \'成人の日\',\'holiday\'),
  60.             (\'2025-02-11\', \'建国記念の日\',\'holiday\'),
  61.             (\'2025-02-23\', \'天皇誕生日\',\'holiday\'),
  62.             (\'2025-02-24\', \'振替休日\',\'holiday\'),
  63.             (\'2025-03-20\', \'春分の日\',\'holiday\'),
  64.             (\'2025-04-29\', \'昭和の日\',\'holiday\'),
  65.             (\'2025-05-03\', \'憲法記念日\',\'holiday\'),
  66.             (\'2025-05-04\', \'みどりの日\',\'holiday\'),
  67.             (\'2025-05-05\', \'こどもの日\',\'holiday\'),
  68.             (\'2025-05-06\', \'振替休日\',\'holiday\'),
  69.             (\'2025-07-21\', \'海の日\',\'holiday\'),
  70.             (\'2025-08-11\', \'山の日\',\'holiday\'),
  71.             (\'2025-09-15\', \'敬老の日\',\'holiday\'),
  72.             (\'2025-09-23\', \'秋分の日\',\'holiday\'),
  73.             (\'2025-10-13\', \'スポーツの日\',\'holiday\'),
  74.             (\'2025-11-03\', \'文化の日\',\'holiday\'),
  75.             (\'2025-11-23\', \'勤労感謝の日\',\'holiday\')
  76.             '
  77.         );
  78.     }
  79.     public function down(Schema $schema): void
  80.     {
  81.         // this down() migration is auto-generated, please modify it to your needs
  82.         $this->addSql('DELETE FROM dtb_holiday');
  83.         $this->addSql('ALTER TABLE dtb_holiday AUTO_INCREMENT = 1');
  84.     }
  85. }