migrations/Version20240402092937.php line 1

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace DoctrineMigrations;
  4. use Doctrine\DBAL\Schema\Schema;
  5. use Doctrine\Migrations\AbstractMigration;
  6. /**
  7.  * Auto-generated Migration: Please modify to your needs!
  8.  */
  9. final class Version20240402092937 extends AbstractMigration
  10. {
  11.     public function getDescription(): string
  12.     {
  13.         return '';
  14.     }
  15.     public function up(Schema $schema): void
  16.     {
  17.         $this->addSql('ALTER TABLE cardiometabolic_profiles CHANGE e_gfr egfr DOUBLE PRECISION NOT NULL');
  18.         $this->addSql(
  19.             'ALTER TABLE health_report_submissions
  20.             ADD non_hdl_cholesterol DOUBLE PRECISION DEFAULT NULL,
  21.             ADD egfr DOUBLE PRECISION DEFAULT NULL'
  22.         );
  23.     }
  24.     public function down(Schema $schema): void
  25.     {
  26.         $this->addSql('ALTER TABLE cardiometabolic_profiles CHANGE egfr e_gfr DOUBLE PRECISION NOT NULL');
  27.         $this->addSql('ALTER TABLE health_report_submissions DROP non_hdl_cholesterol, DROP egfr');
  28.     }
  29. }