migrations/Version20250701174650.php line 1

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace DoctrineMigrations;
  4. use Doctrine\DBAL\Schema\Schema;
  5. use Doctrine\Migrations\AbstractMigration;
  6. final class Version20250701174650 extends AbstractMigration
  7. {
  8.     public function getDescription(): string
  9.     {
  10.         return '';
  11.     }
  12.     public function up(Schema $schema): void
  13.     {
  14.         $this->addSql('CREATE TABLE tipo_destacado (
  15.             id INT AUTO_INCREMENT NOT NULL,
  16.             nombre VARCHAR(32) NOT NULL,
  17.             categoria_id INT DEFAULT NULL,
  18.             PRIMARY KEY(id)
  19.         ) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
  20.     }
  21.     public function down(Schema $schema): void
  22.     {
  23.         $this->addSql('DROP TABLE tipodestacado');
  24.     }
  25. }