<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20230110191135 extends AbstractMigration
{
public function getDescription(): string
{
return 'Add new targeting for campaign';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE campaign ADD vip_creator TINYINT(1) DEFAULT NULL, ADD verified_creator TINYINT(1) DEFAULT NULL, ADD creator_geolocation_enabled TINYINT(1) DEFAULT NULL');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE campaign DROP vip_creator, DROP verified_creator, DROP creator_geolocation_enabled');
}
public function isTransactional(): bool
{
return false;
}
}