<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20220510175607 extends AbstractMigration
{
public function getDescription(): string
{
return 'Add min_follower_count and max_follower_count to campaign';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE campaign ADD min_follower_count INT UNSIGNED DEFAULT NULL, ADD max_follower_count INT UNSIGNED DEFAULT NULL');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE campaign DROP min_follower_count, DROP max_follower_count');
}
public function isTransactional(): bool
{
return false;
}
}