<?php

declare(strict_types=1);

namespace DoctrineMigrations;

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

final class Version20260505120000 extends AbstractMigration
{
    public function getDescription(): string
    {
        return 'Add wake_hour to device for time-based wake scheduling';
    }

    public function up(Schema $schema): void
    {
        $this->addSql('ALTER TABLE device ADD wake_hour INT DEFAULT NULL');
    }

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