<?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 Version20240122135227 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('CREATE TABLE banner (id INT AUTO_INCREMENT NOT NULL, tipo_banner VARCHAR(255) NOT NULL, descripcion_banner VARCHAR(255) NOT NULL, ubicacion_banner VARCHAR(255) NOT NULL, color_banner VARCHAR(50) NOT NULL, icono_banner VARCHAR(255) DEFAULT NULL, texto_boton_principal VARCHAR(255) DEFAULT NULL, enlace_boton_principal VARCHAR(255) DEFAULT NULL, texto_boton_secundario VARCHAR(255) DEFAULT NULL, enlace_boton_secundario VARCHAR(255) DEFAULT NULL, fecha_inicio DATETIME NOT NULL, fecha_fin DATETIME NOT NULL, tipo_alerta VARCHAR(255) DEFAULT NULL, descripcion_alerta VARCHAR(255) DEFAULT NULL, activo_alerta TINYINT(1) NOT NULL, fecha_inicio_alerta DATETIME DEFAULT NULL, fecha_fin_alerta DATETIME DEFAULT NULL, activo TINYINT(1) NOT NULL, posicion INT DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, deleted_at DATETIME DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('DROP TABLE banner');
}
}