migrations/Version20230318161649.php line 1

  1. <?php
  2. declare(strict_types=1);
  3. namespace DoctrineMigrations;
  4. use Doctrine\DBAL\Schema\Schema;
  5. use Doctrine\Migrations\AbstractMigration;
  6. /**
  7.  * Auto-generated Migration: Please modify to your needs!
  8.  */
  9. final class Version20230318161649 extends AbstractMigration
  10. {
  11.     public function getDescription(): string
  12.     {
  13.         return '';
  14.     }
  15.     public function up(Schema $schema): void
  16.     {
  17.         $companySql = <<<SQL
  18. CREATE TABLE model
  19. (
  20.     id          INT AUTO_INCREMENT NOT NULL,
  21.     `type`      VARCHAR(80)        NOT NULL,
  22.     data        JSON               NOT NULL,
  23.     created     DATE               NOT NULL,
  24.     PRIMARY KEY (id)
  25. ) DEFAULT CHARACTER SET utf8mb4
  26.   COLLATE `utf8mb4_unicode_ci`
  27.   ENGINE = InnoDB
  28. SQL;
  29.         $this->addSql($companySql);
  30.     }
  31.     public function down(Schema $schema): void
  32.     {
  33.         // this down() migration is auto-generated, please modify it to your needs
  34.     }
  35. }