<?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 Version20260119153356 extends AbstractMigration
{
public function getDescription(): string
{
return 'Creación de tabla descubrir_red_social';
}
public function up(Schema $schema): void
{
$this->addSql('CREATE TABLE descubrir_red_social (id INT AUTO_INCREMENT NOT NULL, link VARCHAR(255) NOT NULL, icono VARCHAR(255) NOT NULL, activo TINYINT(1) NOT NULL, posicion INT DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, INDEX IDX_LINK (link), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
}
public function down(Schema $schema): void
{
$this->addSql('DROP TABLE descubrir_red_social');
}
}