<?php
declare(strict_types=1);
namespace PPSDKDoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20220511173038_FreshdeskTicketsUpdate extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE freshdesk_tickets ADD status VARCHAR(24) DEFAULT \'new\' NOT NULL, ADD status_changed_when DATETIME DEFAULT NULL, ADD error LONGTEXT NOT NULL');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE freshdesk_tickets DROP status, DROP status_changed_when, DROP error');
}
}