migrations/Version20240612081030.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 Version20240612081030 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 company ADD fonts LONGTEXT DEFAULT NULL, ADD font_family LONGTEXT DEFAULT NULL, ADD not_filled_button_color VARCHAR(191) DEFAULT NULL, ADD not_filled_button_border VARCHAR(191) DEFAULT NULL, ADD not_filled_button_text_color VARCHAR(191) DEFAULT NULL, ADD link_text_color VARCHAR(191) DEFAULT NULL, ADD back_button_color VARCHAR(191) DEFAULT NULL, ADD timer_text_color VARCHAR(191) DEFAULT NULL, ADD tariff_background_color VARCHAR(191) DEFAULT NULL, ADD tariff_text_color VARCHAR(191) DEFAULT NULL, ADD tariff_text_align VARCHAR(191) DEFAULT NULL, ADD title_text_color VARCHAR(191) DEFAULT NULL, ADD title_text_align VARCHAR(191) DEFAULT NULL');
  19.         $this->addSql('UPDATE company SET
  20.                    not_filled_button_border = "0",
  21.                    not_filled_button_text_color = "#E64829",
  22.                    link_text_color = "#E64829",
  23.                    back_button_color = "#FFFFFF",
  24.                    timer_text_color = "#E64829",
  25.                    tariff_background_color = "#FFFFFF",
  26.                    tariff_text_color = "#A0A4AE",
  27.                    tariff_text_align = "left",
  28.                    title_text_color = "#1B2028",
  29.                    title_text_align = "center"
  30.                    ');
  31.     }
  32.     public function down(Schema $schema): void
  33.     {
  34.         // this down() migration is auto-generated, please modify it to your needs
  35.         $this->addSql('ALTER TABLE company DROP fonts, DROP font_family, DROP not_filled_button_color, DROP not_filled_button_border, DROP not_filled_button_text_color,DROP link_text_color, DROP back_button_color, DROP timer_text_color, DROP tariff_background_color, DROP tariff_text_color, DROP tariff_text_align, DROP title_text_color, DROP title_text_align');
  36.     }
  37. }