1
0
Fork 0
get-installer-bootstrap/migrations/Version20260505081600.php

28 lines
778 B
PHP
Raw Normal View History

2026-05-05 08:28:06 +00:00
<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20260505081600 extends AbstractMigration
{
public function getDescription(): string
{
return 'Create application settings.';
}
public function up(Schema $schema): void
{
$this->addSql('CREATE TABLE app_setting (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(190) NOT NULL, value CLOB DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL)');
$this->addSql('CREATE UNIQUE INDEX uniq_app_setting_name ON app_setting (name)');
}
public function down(Schema $schema): void
{
$this->addSql('DROP TABLE app_setting');
}
}