app/DoctrineMigrations/Version20240222031047.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 Version20240222031047 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_time_slot (type_slot_time_id,start_time,end_time,is_special_day,discriminator_type) VALUES
  20.             (2,\'06:00:00\',\'06:30:00\', 1,\'timeslot\'),
  21.             (2,\'06:30:00\',\'07:00:00\', 1,\'timeslot\'),
  22.             (2,\'07:00:00\',\'07:30:00\', 1,\'timeslot\'),
  23.             (2,\'07:30:00\',\'08:00:00\', 1,\'timeslot\'),
  24.             (2,\'08:00:00\',\'08:30:00\', 1,\'timeslot\'),
  25.             (2,\'08:30:00\',\'09:00:00\', 1,\'timeslot\'),
  26.             (2,\'09:00:00\',\'09:30:00\', 1,\'timeslot\'),
  27.             (2,\'09:30:00\',\'10:00:00\', 1,\'timeslot\'),
  28.             (1,\'10:00:00\',\'10:30:00\', 1,\'timeslot\'),
  29.             (1,\'10:30:00\',\'11:00:00\', 1,\'timeslot\'),
  30.             (1,\'11:00:00\',\'11:30:00\', 1,\'timeslot\'),
  31.             (1,\'11:30:00\',\'12:00:00\', 1,\'timeslot\'),
  32.             (1,\'12:00:00\',\'12:30:00\', 1,\'timeslot\'),
  33.             (1,\'12:30:00\',\'13:00:00\', 1,\'timeslot\'),
  34.             (1,\'13:00:00\',\'13:30:00\', 1,\'timeslot\'),
  35.             (1,\'13:30:00\',\'14:00:00\', 1,\'timeslot\'),
  36.             (1,\'14:00:00\',\'14:30:00\', 1,\'timeslot\'),
  37.             (1,\'14:30:00\',\'15:00:00\', 1,\'timeslot\'),
  38.             (1,\'15:00:00\',\'15:30:00\', 1,\'timeslot\'),
  39.             (1,\'15:30:00\',\'16:00:00\', 1,\'timeslot\'),
  40.             (1,\'16:00:00\',\'16:30:00\', 1,\'timeslot\'),
  41.             (1,\'16:30:00\',\'17:00:00\', 1,\'timeslot\'),
  42.             (1,\'17:00:00\',\'17:30:00\', 1,\'timeslot\'),
  43.             (1,\'17:30:00\',\'18:00:00\', 1,\'timeslot\'),
  44.             (1,\'18:00:00\',\'18:30:00\', 0,\'timeslot\'),
  45.             (1,\'18:30:00\',\'19:00:00\', 0,\'timeslot\'),
  46.             (1,\'19:00:00\',\'19:30:00\', 0,\'timeslot\'),
  47.             (1,\'19:30:00\',\'20:00:00\', 0,\'timeslot\')
  48.             '
  49.         );
  50.     }
  51.     public function down(Schema $schema): void
  52.     {
  53.         // this down() migration is auto-generated, please modify it to your needs
  54.         $this->addSql('DELETE FROM dtb_time_slot');
  55.         $this->addSql('ALTER TABLE dtb_time_slot AUTO_INCREMENT = 1');
  56.     }
  57. }