<?php
/* @noinspection PhpUnused */
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*
* @package API
* @internal
*/
final class Version20221121003105 extends AbstractMigration
{
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('DROP TABLE setting');
}
public function getDescription(): string
{
return
"- Introduces setting table.";
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql(
'
CREATE TABLE setting (
id VARCHAR(225) NOT NULL COMMENT \'Internal setting ID\',
group_id VARCHAR(225) NOT NULL COMMENT \'Internal settings group ID\',
value VARCHAR(1000) DEFAULT NULL COMMENT \'Setting value\',
PRIMARY KEY(id, group_id)
) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB
'
);
}
}