<?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 Version20200408133916 extends AbstractMigration
{
public function getDescription() : string
{
return '';
}
public function up(Schema $schema) : void
{
// this up() 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('ALTER TABLE channel_settings ADD mixing_time_point TIMESTAMP(0) WITHOUT TIME ZONE DEFAULT NULL');
$this->addSql('ALTER TABLE channel_settings ADD mixing_temperature DOUBLE PRECISION DEFAULT NULL');
$this->addSql('ALTER TABLE channel_settings ADD casting_time_point TIMESTAMP(0) WITHOUT TIME ZONE DEFAULT NULL');
$this->addSql('ALTER TABLE channel_settings ADD starting_time_point TIMESTAMP(0) WITHOUT TIME ZONE DEFAULT NULL');
$this->addSql('COMMENT ON COLUMN channel_settings.mixing_time_point IS \'Mixing time point.\'');
$this->addSql('COMMENT ON COLUMN channel_settings.mixing_temperature IS \'Mixing temperature\'');
$this->addSql('COMMENT ON COLUMN channel_settings.casting_time_point IS \'Casting time point.\'');
$this->addSql('COMMENT ON COLUMN channel_settings.starting_time_point IS \'Starting time point.\'');
}
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');
$this->addSql('ALTER TABLE channel_settings DROP mixing_time_point');
$this->addSql('ALTER TABLE channel_settings DROP mixing_temperature');
$this->addSql('ALTER TABLE channel_settings DROP casting_time_point');
$this->addSql('ALTER TABLE channel_settings DROP starting_time_point');
}
}