<?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 Version20200508065934 extends AbstractMigration
{
public function getDescription() : string
{
return '';
}
public function up(Schema $schema) : void
{
$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}\'');
$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}\'');
}
public function down(Schema $schema) : void
{
// this down() migration is auto-generated, please modify it to your needs
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'postgresql', 'Migration can only be executed safely on \'postgresql\'.');
$this->addSql('CREATE SCHEMA public');
}
}