<?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 Version20211228151849 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->addSql('CREATE TABLE campaign_target (id INT AUTO_INCREMENT NOT NULL, campaign_id INT DEFAULT NULL, sexe VARCHAR(255) DEFAULT NULL, staying VARCHAR(255) DEFAULT NULL, country VARCHAR(255) DEFAULT NULL, langue VARCHAR(255) DEFAULT NULL, UNIQUE INDEX UNIQ_9B2C5651F639F774 (campaign_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('ALTER TABLE campaign_target ADD CONSTRAINT FK_9B2C5651F639F774 FOREIGN KEY (campaign_id) REFERENCES campaign (id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('DROP TABLE campaign_target');
}
}