<?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 Version20260206233000 extends AbstractMigration
{
    public function getDescription(): string
    {
        return 'Add return fields to etat_lieux';
    }

    public function up(Schema $schema): void
    {
        // this up() migration is auto-generated, please modify it to your needs
        $this->addSql('ALTER TABLE etat_lieux ADD sign_id_return VARCHAR(255) DEFAULT NULL');
        $this->addSql('ALTER TABLE etat_lieux ADD sign_id_customer_return VARCHAR(255) DEFAULT NULL');
        $this->addSql('ALTER TABLE etat_lieux ADD etat_lieux_unsign_return_file_name VARCHAR(255) DEFAULT NULL');
        $this->addSql('ALTER TABLE etat_lieux ADD etat_lieux_unsign_return_file_size INT DEFAULT NULL');
        $this->addSql('ALTER TABLE etat_lieux ADD etat_lieux_sign_return_file_name VARCHAR(255) DEFAULT NULL');
        $this->addSql('ALTER TABLE etat_lieux ADD etat_lieux_sign_return_file_size INT DEFAULT NULL');
        $this->addSql('ALTER TABLE etat_lieux ADD etat_lieux_audit_return_file_name VARCHAR(255) DEFAULT NULL');
        $this->addSql('ALTER TABLE etat_lieux ADD etat_lieux_audit_return_file_size INT DEFAULT NULL');
    }

    public function down(Schema $schema): void
    {
        // this down() migration is auto-generated, please modify it to your needs
        $this->addSql('ALTER TABLE etat_lieux DROP sign_id_return');
        $this->addSql('ALTER TABLE etat_lieux DROP sign_id_customer_return');
        $this->addSql('ALTER TABLE etat_lieux DROP etat_lieux_unsign_return_file_name');
        $this->addSql('ALTER TABLE etat_lieux DROP etat_lieux_unsign_return_file_size');
        $this->addSql('ALTER TABLE etat_lieux DROP etat_lieux_sign_return_file_name');
        $this->addSql('ALTER TABLE etat_lieux DROP etat_lieux_sign_return_file_size');
        $this->addSql('ALTER TABLE etat_lieux DROP etat_lieux_audit_return_file_name');
        $this->addSql('ALTER TABLE etat_lieux DROP etat_lieux_audit_return_file_size');
    }
}
