<?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 Version20240730074030 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('ALTER TABLE survey ADD short_name VARCHAR(255) NOT NULL, CHANGE name name VARCHAR(255) NOT NULL');
$this->addSql('update survey set short_name = name');
$this->addSql("INSERT INTO user_survey_status (name, code, badge_color, graph_color, is_todo) VALUES ('Attente retour impots.gouv.fr', 'PROCESSING_FR_WAIT', 'secondary', '#7b809a', '0');");
$this->addSql("INSERT INTO `document` (`document_group_id`, `name`, `code`, `is_user_saved`) VALUES ('9', 'Document Impot.gouv', 'DOC_IMP_FR', '0');");
$this->addSql("UPDATE `survey` SET `code` = 'REMBOURSEMENT_LPP' WHERE (`id` = '11');");
$this->addSql("UPDATE `survey_step` SET `validation_group` = 'step_owner_RmbLpp' WHERE (`id` = '72');");
$this->addSql("UPDATE `survey_step` SET `validation_group` = 'step_partners_rmb_lpp' WHERE (`id` = '73');");
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE survey DROP short_name, CHANGE name name VARCHAR(50) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`');
}
}