migrations/Version20230126090518.php line 1

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4.  * This file is part of Symfony Keen Template Project.
  5.  * (c) 2021 One AM SRL
  6.  */
  7. namespace App\Migrations;
  8. use Doctrine\DBAL\Schema\Schema;
  9. use Doctrine\Migrations\AbstractMigration;
  10. /**
  11.  * Auto-generated Migration: Please modify to your needs!
  12.  */
  13. final class Version20230126090518 extends AbstractMigration
  14. {
  15.     public function getDescription(): string
  16.     {
  17.         return '';
  18.     }
  19.     public function up(Schema $schema): void
  20.     {
  21.         // this up() migration is auto-generated, please modify it to your needs
  22.         $this->addSql('CREATE TABLE IF NOT EXISTS section_image (id INT AUTO_INCREMENT NOT NULL, url VARCHAR(255) DEFAULT NULL, cta VARCHAR(255) DEFAULT NULL, title VARCHAR(255) DEFAULT NULL, description LONGTEXT DEFAULT NULL, position VARCHAR(255) NOT NULL, cover_file_name VARCHAR(255) DEFAULT NULL, cover_mime_type VARCHAR(255) DEFAULT NULL, cover_path VARCHAR(255) DEFAULT NULL, cover_size INT DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
  23.     }
  24.     public function down(Schema $schema): void
  25.     {
  26.         // this down() migration is auto-generated, please modify it to your needs
  27.         $this->addSql('DROP TABLE section_image');
  28.     }
  29. }