<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20260926120000 extends AbstractMigration
{
public function getDescription(): string
{
return 'Weekly service hours per restaurant, set by the restaurant from the apps';
}
public function up(Schema $schema): void
{
// Nullable with no default: existing restaurants have not set hours, and the apps
// fall back to Google's until they do.
$this->addSql('ALTER TABLE restaurante ADD service_hours JSON DEFAULT NULL');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE restaurante DROP service_hours');
}
}