<?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 Version20230928180423 extends AbstractMigration
{
public function getDescription(): string
{
return 'Добавление остатка бюджета в явном виде в отчет';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE project_report ADD remainder_plan DOUBLE PRECISION DEFAULT NULL');
$this->addSql('ALTER TABLE project_report ADD remainder DOUBLE PRECISION DEFAULT NULL');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE project_report DROP remainder_plan');
$this->addSql('ALTER TABLE project_report DROP remainder');
}
}