migrations/Version20200508065934.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 Version20200508065934 extends AbstractMigration
  10. {
  11.     public function getDescription() : string
  12.     {
  13.         return '';
  14.     }
  15.     public function up(Schema $schema) : void
  16.     {
  17.         $this->addSql('UPDATE channel_settings SET strength_points = \'{"0.5":false,"1.0":false,"2.0":false,"3.0":false,"4.0":false,"5.0":false,"6.0":false,"7.0":false,"8.0":false,"9.0":false,"11.0":false,"12.0":false,"14.0":false,"18.0":false,"20.0":false,"25.0":false,"30.0":false,"35.0":false,"40.0":false,"45.0":false,"50.0":false,"55.0":false,"60.0":false,"65.0":false,"70.0":false,"75.0":false}\'');
  18.         $this->addSql('UPDATE measurement_settings SET strength_points = \'{"0.5":false,"1.0":false,"2.0":false,"3.0":false,"4.0":false,"5.0":false,"6.0":false,"7.0":false,"8.0":false,"9.0":false,"11.0":false,"12.0":false,"14.0":false,"18.0":false,"20.0":false,"25.0":false,"30.0":false,"35.0":false,"40.0":false,"45.0":false,"50.0":false,"55.0":false,"60.0":false,"65.0":false,"70.0":false,"75.0":false}\'');
  19.     }
  20.     public function down(Schema $schema) : void
  21.     {
  22.         // this down() migration is auto-generated, please modify it to your needs
  23.         $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'postgresql''Migration can only be executed safely on \'postgresql\'.');
  24.         $this->addSql('CREATE SCHEMA public');
  25.     }
  26. }