Files
radarsargasses/backend/migrations/Version20260403000000.php
2026-04-03 18:42:21 -04:00

27 lines
640 B
PHP

<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20260403000000 extends AbstractMigration
{
public function getDescription(): string
{
return 'Ajout eta_hours sur impact_score — horizon prévu d\'impact côtier';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE impact_score ADD COLUMN eta_hours INT DEFAULT NULL');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE impact_score DROP COLUMN IF EXISTS eta_hours');
}
}