migrations/Version20230510192929.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 Version20230510192929 extends AbstractMigration
  10. {
  11.     public function getDescription(): string
  12.     {
  13.         return 'project settings';
  14.     }
  15.     public function up(Schema $schema): void
  16.     {
  17.         $sql = <<<SQL
  18. CREATE TABLE config
  19. (
  20.     id     INT AUTO_INCREMENT NOT NULL,
  21.     `key`  VARCHAR(255)       NOT NULL,
  22.     value  JSON               NOT NULL,
  23.     PRIMARY KEY (id)
  24. ) DEFAULT CHARACTER SET utf8mb4
  25.   COLLATE `utf8mb4_unicode_ci`
  26.   ENGINE = InnoDB
  27. SQL;
  28.         $this->addSql($sql);
  29.     }
  30.     public function down(Schema $schema): void
  31.     {
  32.     }
  33. }