<?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 Version20191014144411 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 notification CHANGE command command ENUM(\'created_object\',\'created_comment\',\'assigned_customer\',\'assigned_lead\',\'assigned_event\',\'assigned_issue\',\'assigned_feed\',\'event_poked\',\'event_reminder\',\'event_is_due\',\'project_poked\',\'message_sent\') NOT NULL COMMENT \'(DC2Type:NotificationCommandType)\'');
}
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 notification CHANGE command command ENUM(\'created_object\',\'created_comment\',\'assigned_customer\',\'assigned_lead\',\'assigned_event\',\'assigned_issue\',\'assigned_feed\',\'event_poked\',\'event_reminder\',\'event_is_due\',\'message_sent\') NOT NULL COMMENT \'(DC2Type:NotificationCommandType)\'');
}
}