<?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 Version20201112232422 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('mysql' !== $this->connection->getDatabasePlatform()->getName(), 'Migration can only be executed safely on \'mysql\'.');
$this->addSql('ALTER TABLE workflow CHANGE trigger_type trigger_type ENUM(\'created\', \'created_or_updated\', \'created_or_updated_to_match\', \'daily\', \'hourly\') NOT NULL COMMENT \'(DC2Type:WorkflowTriggerType)\'');
$this->addSql('ALTER TABLE workflow_condition CHANGE operator operator ENUM(\'equals\', \'not_equals\', \'in\', \'contains\', \'greater\', \'less\', \'before\', \'after\', \'between\', \'between_days\', \'between_hours\') NOT NULL COMMENT \'(DC2Type:WorkflowOperatorType)\'');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->abortIf('mysql' !== $this->connection->getDatabasePlatform()->getName(), 'Migration can only be executed safely on \'mysql\'.');
$this->addSql('ALTER TABLE workflow_condition CHANGE operator operator ENUM(\'equals\', \'not_equals\', \'in\', \'contains\', \'greater\', \'less\', \'before\', \'after\') NOT NULL COMMENT \'(DC2Type:WorkflowOperatorType)\'');
$this->addSql('ALTER TABLE workflow CHANGE trigger_type trigger_type ENUM(\'created\', \'created_or_updated\', \'created_or_updated_to_match\', \'daily\') NOT NULL COMMENT \'(DC2Type:WorkflowTriggerType)\'');
}
}