ogcore/migrations/Version20260413120000.php

27 lines
563 B
PHP

<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20260413120000 extends AbstractMigration
{
public function getDescription(): string
{
return 'Add notes field to client table';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE client ADD notes LONGTEXT DEFAULT NULL');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE client DROP notes');
}
}