<?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 Version20240612081030 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 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');
$this->addSql('UPDATE company SET
not_filled_button_border = "0",
not_filled_button_text_color = "#E64829",
link_text_color = "#E64829",
back_button_color = "#FFFFFF",
timer_text_color = "#E64829",
tariff_background_color = "#FFFFFF",
tariff_text_color = "#A0A4AE",
tariff_text_align = "left",
title_text_color = "#1B2028",
title_text_align = "center"
');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$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');
}
}