<?php
declare(strict_types=1);
namespace ProjectsBundleMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20230929091812 extends AbstractMigration
{
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE projects_bundle__task ADD is_active TINYINT(1) DEFAULT 1 NOT NULL');
$this->addSql('CREATE INDEX is_active ON projects_bundle__task (is_active)');
}
public function down(Schema $schema): void
{
$this->addSql('DROP INDEX is_active ON projects_bundle__task');
$this->addSql('ALTER TABLE projects_bundle__task DROP is_active');
}
}