migrations/Version20240807055200.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 Version20240807055200 extends AbstractMigration
  10. {
  11.     public function getDescription(): string
  12.     {
  13.         return '';
  14.     }
  15.     public function up(Schema $schema): void
  16.     {
  17.         $this->addSql("UPDATE `dp_kpi` SET `visbility` = 'both' WHERE `dp_kpi`.`kpi_key` = 'ship_total'");
  18.         $this->addSql("UPDATE `dp_kpi` SET `visbility` = 'plan' WHERE `dp_kpi`.`kpi_key` = 'd_production_target'");
  19.     }
  20.     public function down(Schema $schema): void
  21.     {
  22.         $this->addSql("UPDATE `dp_kpi` SET `visibility` = 'plan' WHERE `dp_kpi`.`kpi_key` = 'ship_total'");
  23.         $this->addSql("UPDATE `dp_kpi` SET `visibility` = 'both' WHERE `dp_kpi`.`kpi_key` = 'd_production_target'");
  24.     }
  25. }