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