<?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 Version20240820201137 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 info ADD whatsapp_button VARCHAR(155) DEFAULT NULL COMMENT \'Texto de botón\', ADD whatsapp_message VARCHAR(255) DEFAULT NULL COMMENT \'Mensaje de whatsapp\', ADD whatsapp_consultants_show TINYINT(1) DEFAULT 0 NOT NULL COMMENT \'Mostrar whatsapp? 1:Sí, 0:No\', ADD whatsapp_title VARCHAR(255) DEFAULT NULL COMMENT \'Whatsapp Título\', ADD whatsapp_text VARCHAR(255) DEFAULT NULL COMMENT \'Whatsapp texto\', ADD whatsapp_help VARCHAR(255) DEFAULT NULL COMMENT \'Whatsapp texto de ayuda\', ADD whatsapp_consultants_items LONGTEXT NOT NULL COMMENT \'Asesores(DC2Type:array)\'');
$this->addSql('UPDATE info SET whatsapp_consultants_items = \'a:0:{}\'');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE info DROP whatsapp_button, DROP whatsapp_message, DROP whatsapp_consultants_show, DROP whatsapp_title, DROP whatsapp_text, DROP whatsapp_help, DROP whatsapp_consultants_items');
}
}