<?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 Version20250519064647 extends AbstractMigration
{
public function getDescription(): string
{
return 'Add time frame tracking fields to tc_tcard table';
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql(<<<'SQL'
ALTER TABLE tc_tcard ADD is_delayed_time_frame TINYINT(1) NOT NULL DEFAULT 0, ADD is_missed_time_frame TINYINT(1) NOT NULL DEFAULT 0, ADD missed_time_frame_duration INT DEFAULT 0
SQL);
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql(<<<'SQL'
ALTER TABLE tc_tcard DROP is_delayed_time_frame, DROP is_missed_time_frame, DROP missed_time_frame_duration
SQL);
}
}