<?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 Version20230216181118 extends AbstractMigration
{
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE service_message_campaign_recipient ADD customer_id INT NOT NULL AFTER job_id, CHANGE message_log_id message_log_id INT DEFAULT NULL');
$this->addSql('ALTER TABLE service_message_campaign_recipient ADD CONSTRAINT FK_E2C755779395H6F8 FOREIGN KEY (customer_id) REFERENCES customer (id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE service_message_campaign_recipient DROP FOREIGN KEY FK_E2C755779395H6F8');
$this->addSql('ALTER TABLE service_message_campaign_recipient DROP customer_id, CHANGE message_log_id message_log_id INT NOT NULL');
}
}