<?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 Version20260717111223 extends AbstractMigration
{
    public function getDescription(): string
    {
        return 'Add archived + archived_at columns to patient_sessions (soft-archive)';
    }

    public function up(Schema $schema): void
    {
        $this->addSql('ALTER TABLE patient_sessions ADD archived TINYINT DEFAULT 0 NOT NULL, ADD archived_at INT DEFAULT NULL');
    }

    public function down(Schema $schema): void
    {
        $this->addSql('ALTER TABLE patient_sessions DROP archived, DROP archived_at');
    }
}
