<?php

declare(strict_types=1);

namespace DoctrineMigrations;

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

/**
 * Auto-generated Migration: Please modify to your needs!
 */
final class Version20250317150730 extends AbstractMigration
{
    public function getDescription() : string
    {
        return '';
    }

    public function up(Schema $schema) : void
    {
        // this up() migration is auto-generated, please modify it to your needs
        $this->addSql("
            INSERT INTO global_parameter (id, name, description, value, mandatory)
            VALUES (
                    UUID(),
                    'SSA_FORCE_ALLOCATION_AMOUNT',
                    'Le montant d\'allocation est forcé égal à l\'entier positif saisi. Saisir 0 pour désactiver. Attention : pour que le montant soit bien pris en compte, veuillez effectuer l\'action \"Recalculer les allocations en fonction du foyer\" sur l\'écran de la liste des adhérents.',
                    '0',
                    '0'
            )
        ");
    }

    public function down(Schema $schema) : void
    {
        $this->addSql("DELETE FROM global_parameter where name='SSA_FORCE_ALLOCATION_AMOUNT'");
        // this down() migration is auto-generated, please modify it to your needs
    }
}
