migrations/Version20221111132141.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 Version20221111132141 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("INSERT INTO `input_type` (`id`, `name`, `fqcn`) VALUES (11, 'CKEditorType', 'FOS\\\CKEditorBundle\\\Form\\\Type\\\CKEditorType');");
  19.         $this->addSql("INSERT INTO `setting` (`id`, `name`, `value`, `translation_key`, `input_type_id`) VALUES (18, 'gdpr', '<h5 style=\"text-align:center\">Politica de Confidentialitate</5>\r\n\r\n<p style=\"text-align:center\">Va vom colecta datele</p>\r\n\r\n<p style=\"text-align:center\">Si veti fii de acord</p>', 'settings.gdpr', 11);");
  20.     }
  21.     public function down(Schema $schema): void
  22.     {
  23.         // this down() migration is auto-generated, please modify it to your needs
  24.         $this->addSql("DELETE FROM `setting` WHERE `id` = 18");
  25.         $this->addSql("DELETE FROM `input_type` WHERE `id` = 11");
  26.     }
  27. }