<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20260401130000 extends AbstractMigration
{
public function getDescription(): string
{
return 'Ajout des champs siren et siret à la table society';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE society ADD siren VARCHAR(9) DEFAULT NULL, ADD siret VARCHAR(14) DEFAULT NULL');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE society DROP COLUMN siren, DROP COLUMN siret');
}
}