<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20251015175541 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('DROP INDEX idx_std_pages_tracking_event ON std_pages_tracking');
$this->addSql('ALTER TABLE std_pages_tracking ADD tracking_id VARCHAR(255) DEFAULT NULL, CHANGE event event VARCHAR(60) DEFAULT \'open_page\'');
$this->addSql('ALTER TABLE std_pages_tracking RENAME INDEX idx_6bdce781c4663e4 TO IDX_5DA08B5EC4663E4');
$this->addSql('ALTER TABLE std_pages_tracking RENAME INDEX idx_6bdce7814fc17d0b TO IDX_5DA08B5E4FC17D0B');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE std_pages_tracking DROP tracking_id, CHANGE event event VARCHAR(100) DEFAULT \'open_page\' COMMENT \'Tracked event kind (application enum value)\'');
$this->addSql('CREATE INDEX idx_std_pages_tracking_event ON std_pages_tracking (event)');
$this->addSql('ALTER TABLE std_pages_tracking RENAME INDEX idx_5da08b5ec4663e4 TO IDX_6BDCE781C4663E4');
$this->addSql('ALTER TABLE std_pages_tracking RENAME INDEX idx_5da08b5e4fc17d0b TO IDX_6BDCE7814FC17D0B');
}
}