<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20240222031047 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql(
'INSERT INTO dtb_time_slot (type_slot_time_id,start_time,end_time,is_special_day,discriminator_type) VALUES
(2,\'06:00:00\',\'06:30:00\', 1,\'timeslot\'),
(2,\'06:30:00\',\'07:00:00\', 1,\'timeslot\'),
(2,\'07:00:00\',\'07:30:00\', 1,\'timeslot\'),
(2,\'07:30:00\',\'08:00:00\', 1,\'timeslot\'),
(2,\'08:00:00\',\'08:30:00\', 1,\'timeslot\'),
(2,\'08:30:00\',\'09:00:00\', 1,\'timeslot\'),
(2,\'09:00:00\',\'09:30:00\', 1,\'timeslot\'),
(2,\'09:30:00\',\'10:00:00\', 1,\'timeslot\'),
(1,\'10:00:00\',\'10:30:00\', 1,\'timeslot\'),
(1,\'10:30:00\',\'11:00:00\', 1,\'timeslot\'),
(1,\'11:00:00\',\'11:30:00\', 1,\'timeslot\'),
(1,\'11:30:00\',\'12:00:00\', 1,\'timeslot\'),
(1,\'12:00:00\',\'12:30:00\', 1,\'timeslot\'),
(1,\'12:30:00\',\'13:00:00\', 1,\'timeslot\'),
(1,\'13:00:00\',\'13:30:00\', 1,\'timeslot\'),
(1,\'13:30:00\',\'14:00:00\', 1,\'timeslot\'),
(1,\'14:00:00\',\'14:30:00\', 1,\'timeslot\'),
(1,\'14:30:00\',\'15:00:00\', 1,\'timeslot\'),
(1,\'15:00:00\',\'15:30:00\', 1,\'timeslot\'),
(1,\'15:30:00\',\'16:00:00\', 1,\'timeslot\'),
(1,\'16:00:00\',\'16:30:00\', 1,\'timeslot\'),
(1,\'16:30:00\',\'17:00:00\', 1,\'timeslot\'),
(1,\'17:00:00\',\'17:30:00\', 1,\'timeslot\'),
(1,\'17:30:00\',\'18:00:00\', 1,\'timeslot\'),
(1,\'18:00:00\',\'18:30:00\', 0,\'timeslot\'),
(1,\'18:30:00\',\'19:00:00\', 0,\'timeslot\'),
(1,\'19:00:00\',\'19:30:00\', 0,\'timeslot\'),
(1,\'19:30:00\',\'20:00:00\', 0,\'timeslot\')
'
);
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('DELETE FROM dtb_time_slot');
$this->addSql('ALTER TABLE dtb_time_slot AUTO_INCREMENT = 1');
}
}