<?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 Version20240402092937 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE cardiometabolic_profiles CHANGE e_gfr egfr DOUBLE PRECISION NOT NULL');
$this->addSql(
'ALTER TABLE health_report_submissions
ADD non_hdl_cholesterol DOUBLE PRECISION DEFAULT NULL,
ADD egfr DOUBLE PRECISION DEFAULT NULL'
);
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE cardiometabolic_profiles CHANGE egfr e_gfr DOUBLE PRECISION NOT NULL');
$this->addSql('ALTER TABLE health_report_submissions DROP non_hdl_cholesterol, DROP egfr');
}
}