<?php

declare(strict_types=1);

namespace DoctrineMigrations;

use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;

final class Version20260505140000 extends AbstractMigration
{
    public function getDescription(): string
    {
        return 'Add timezone to device (per-device scheduling context)';
    }

    public function up(Schema $schema): void
    {
        $this->addSql("ALTER TABLE device ADD timezone VARCHAR(60) NOT NULL DEFAULT 'UTC'");
    }

    public function down(Schema $schema): void
    {
        $this->addSql('ALTER TABLE device DROP COLUMN timezone');
    }
}
