<?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 Version20260331184006 extends AbstractMigration
{
public function getDescription(): string
{
return 'Crea la tabla banner linda';
}
public function up(Schema $schema): void
{
$this->addSql('CREATE TABLE linda (id INT AUTO_INCREMENT NOT NULL, titulo VARCHAR(255) NOT NULL, titulo_boton VARCHAR(255) NOT NULL, link_redireccion VARCHAR(500) NOT NULL, color VARCHAR(255) DEFAULT NULL, imagen VARCHAR(255) NOT NULL, posicion_contenido VARCHAR(50) 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, INDEX IDX_TITULO (titulo), INDEX deleted_at_idx (deleted_at), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
}
public function down(Schema $schema): void
{
$this->addSql('DROP TABLE linda');
}
}