ogcore/migrations/Version20260707091500.php

30 lines
658 B
PHP

<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Add language column to user table for storing preferred language.
*/
final class Version20260707091500 extends AbstractMigration
{
public function getDescription(): string
{
return 'Add language column to user table';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE `user` ADD language VARCHAR(10) DEFAULT NULL');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE `user` DROP COLUMN language');
}
}