<?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 Version20220909151353 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 customer_status CHANGE type type ENUM(\'default\', \'converted\', \'closed\', \'in_collections\', \'stop_work\', \'cancelled\', \'inactive\', \'waiting_on_poa\', \'do_not_contact\', \'pending\') DEFAULT NULL COMMENT \'(DC2Type:StatusType)\'');
$this->addSql('INSERT INTO customer_status (id, name, sort_order, type) VALUES (12, \'Do not Contact\', 10, \'do_not_contact\')');
}
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('DELETE FROM customer_status WHERE id = 12');
$this->addSql('ALTER TABLE customer_status CHANGE type type ENUM(\'default\', \'converted\', \'closed\', \'in_collections\', \'stop_work\', \'cancelled\', \'inactive\', \'waiting_on_poa\', \'pending\') DEFAULT NULL COMMENT \'(DC2Type:StatusType)\'');
}
}