<?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 Version20220212143459 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('ALTER TABLE parameter_time_clock ADD begin_at TIME NOT NULL, ADD begin_at_min TIME NOT NULL, ADD begin_at_max TIME NOT NULL, ADD finish_at_min TIME NOT NULL, DROP tolerance_start, DROP tolerance_end, DROP start, DROP end_work, DROP rest_start, DROP rest_end, DROP parameter_name');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE parameter_time_clock ADD tolerance_start INT NOT NULL, ADD tolerance_end INT NOT NULL, ADD start INT NOT NULL, ADD end_work INT NOT NULL, ADD rest_start INT DEFAULT NULL, ADD rest_end INT DEFAULT NULL, ADD parameter_name VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, DROP begin_at, DROP begin_at_min, DROP begin_at_max, DROP finish_at_min');
}
}