migrations/Version20230510192929.php line 1
<?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 Version20230510192929 extends AbstractMigration
{
public function getDescription(): string
{
return 'project settings';
}
public function up(Schema $schema): void
{
$sql = <<<SQL
CREATE TABLE config
(
id INT AUTO_INCREMENT NOT NULL,
`key` VARCHAR(255) NOT NULL,
value JSON NOT NULL,
PRIMARY KEY (id)
) DEFAULT CHARACTER SET utf8mb4
COLLATE `utf8mb4_unicode_ci`
ENGINE = InnoDB
SQL;
$this->addSql($sql);
}
public function down(Schema $schema): void
{
}
}