<?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 Version20230220121136 extends AbstractMigration
{
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('RENAME TABLE service_message_campaign TO service_campaign');
$this->addSql('RENAME TABLE service_message_campaign_recipient TO service_campaign_recipient');
$this->addSql('ALTER TABLE message_log ADD reply_message LONGTEXT DEFAULT NULL, ADD reply_type INT DEFAULT NULL');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('RENAME TABLE service_campaign TO service_message_campaign');
$this->addSql('RENAME TABLE service_campaign_recipient TO service_message_campaign_recipient');
$this->addSql('ALTER TABLE message_log DROP reply_message, DROP reply_type');
}
}