src\Migrations\Version20240730074030.php line 1

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace DoctrineMigrations;
  4. use Doctrine\DBAL\Schema\Schema;
  5. use Doctrine\Migrations\AbstractMigration;
  6. /**
  7.  * Auto-generated Migration: Please modify to your needs!
  8.  */
  9. final class Version20240730074030 extends AbstractMigration
  10. {
  11.     public function getDescription(): string
  12.     {
  13.         return '';
  14.     }
  15.     public function up(Schema $schema): void
  16.     {
  17.         // this up() migration is auto-generated, please modify it to your needs
  18.         $this->addSql('ALTER TABLE survey ADD short_name VARCHAR(255) NOT NULL, CHANGE name name VARCHAR(255) NOT NULL');
  19.         $this->addSql('update survey set short_name = name');
  20.         $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');");
  21.         
  22.         $this->addSql("INSERT INTO `document` (`document_group_id`, `name`, `code`, `is_user_saved`) VALUES ('9', 'Document Impot.gouv', 'DOC_IMP_FR', '0');");
  23.         $this->addSql("UPDATE `survey` SET `code` = 'REMBOURSEMENT_LPP' WHERE (`id` = '11');");
  24.         $this->addSql("UPDATE `survey_step` SET `validation_group` = 'step_owner_RmbLpp' WHERE (`id` = '72');");
  25.         $this->addSql("UPDATE `survey_step` SET `validation_group` = 'step_partners_rmb_lpp' WHERE (`id` = '73');");
  26.     }
  27.     public function down(Schema $schema): void
  28.     {
  29.         // this down() migration is auto-generated, please modify it to your needs
  30.         $this->addSql('ALTER TABLE survey DROP short_name, CHANGE name name VARCHAR(50) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`');
  31.     }
  32. }