<?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 Version20250416070637 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 `tc_tcard` ADD `is_reopen_audit` TINYINT(1) NOT NULL DEFAULT '0' AFTER `max_audit`");
$this->addSql("ALTER TABLE `tc_tcard_checksheet_status` CHANGE `audit_status` `audit_status` ENUM('delayed','missed','upcoming','attended','ongoing') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'upcoming'");
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql("ALTER TABLE `tc_tcard` DROP COLUMN `is_reopen_audit`");
$this->addSql("ALTER TABLE `tc_tcard_checksheet_status` CHANGE `audit_status` `audit_status` ENUM('delayed','missed','upcoming','attended') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'upcoming'");
}
}