<?php
declare(strict_types=1);
namespace CoreMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20240805071824 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 FULLTEXT INDEX render ON notification (render)');
$this->addSql('CREATE INDEX viewed ON notification (viewed)');
$this->addSql('CREATE INDEX readed ON notification (readed)');
$this->addSql('CREATE INDEX deleted ON notification (deleted)');
$this->addSql('CREATE INDEX created_at ON notification (created_at)');
$this->addSql('CREATE INDEX updated_at ON notification (updated_at)');
$this->addSql('ALTER TABLE tickets_bundle__ticket_state ADD task_state_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\'');
$this->addSql('ALTER TABLE tickets_bundle__ticket_state ADD CONSTRAINT FK_D5EB48964518D68D FOREIGN KEY (task_state_id) REFERENCES projects_bundle__task_state (id)');
$this->addSql('CREATE INDEX IDX_D5EB48964518D68D ON tickets_bundle__ticket_state (task_state_id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE tickets_bundle__ticket_state DROP FOREIGN KEY FK_D5EB48964518D68D');
$this->addSql('DROP INDEX IDX_D5EB48964518D68D ON tickets_bundle__ticket_state');
$this->addSql('ALTER TABLE tickets_bundle__ticket_state DROP task_state_id');
$this->addSql('DROP INDEX render ON notification');
$this->addSql('DROP INDEX viewed ON notification');
$this->addSql('DROP INDEX readed ON notification');
$this->addSql('DROP INDEX deleted ON notification');
$this->addSql('DROP INDEX created_at ON notification');
$this->addSql('DROP INDEX updated_at ON notification');
}
}