<?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 Version20250129104839 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_ALLOW_COMPTOIR_TO_UPDATE_HOUSEHOLD_ALLOCATION_DATA', 'La valeur \'false\' retire aux comptoirs le droit de mettre à jour les informations d\'allocation d\'un adhérent (update uniquement)', null, '1')");
        $this->addSql("INSERT INTO global_parameter (id, name, description, value, mandatory) VALUES (UUID(), 'SSA_HOUSEHOLD_ALLOCATION_MSG_FOR_COMPTOIR', 'Affiche un message à l\'intention des comptoirs dans la fiche adhérent, section allocation', null, '1')");
    }
    
    public function down(Schema $schema) : void
    {
        $this->addSql("DELETE FROM global_parameter WHERE name='SSA_ALLOW_COMPTOIR_TO_UPDATE_HOUSEHOLD_ALLOCATION_DATA'");
        $this->addSql("DELETE FROM global_parameter WHERE name='SSA_HOUSEHOLD_ALLOCATION_MSG_FOR_COMPTOIR'");
        // this down() migration is auto-generated, please modify it to your needs
    }
}
