<?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 Version20231121205425 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_referred ADD banner_image_desktop VARCHAR(255) DEFAULT NULL COMMENT \'Imagen de la página\', ADD banner_image_mobile VARCHAR(255) DEFAULT NULL COMMENT \'Imagen de la página\', DROP what_title, DROP what_text, DROP image, DROP video_show, DROP video_url, DROP video_image');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE info_referred ADD what_title VARCHAR(155) DEFAULT NULL COMMENT \'Título del bloque de descripción\', ADD what_text LONGTEXT DEFAULT NULL COMMENT \'Párrafo del bloque de descripción\', ADD image VARCHAR(155) DEFAULT NULL COMMENT \'Imagen de la página\', ADD video_show TINYINT(1) DEFAULT 0 NOT NULL COMMENT \'Mostrar video? 1: Sí, 0:No\', ADD video_url VARCHAR(255) DEFAULT \'\' COMMENT \'Url de video\', ADD video_image VARCHAR(155) DEFAULT NULL COMMENT \'Imagen de video\', DROP banner_image_desktop, DROP banner_image_mobile');
}
}