<?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 Version20240109175308 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('ALTER TABLE app_translations RENAME INDEX idx_ed8c63d37987212d TO IDX_439C0067987212D');
// $this->addSql('ALTER TABLE app_translations RENAME INDEX idx_ed8c63d312469de2 TO IDX_439C00612469DE2');
// $this->addSql('ALTER TABLE app_translations_translation RENAME INDEX idx_3f806f872c2ac5d3 TO IDX_6D4A86FF2C2AC5D3');
// $this->addSql('ALTER TABLE app_translations_translation RENAME INDEX app_translation_translation_unique_translation TO app_translations_translation_unique_translation');
// $this->addSql('DROP INDEX titles_only ON country_translation');
// $this->addSql('ALTER TABLE customer RENAME INDEX fk_81398e09f92f3e70 TO IDX_81398E09F92F3E70');
// $this->addSql('DROP INDEX name ON disease_translation');
// $this->addSql('DROP INDEX titles_only ON disease_translation');
// $this->addSql('DROP INDEX name ON drug_translation');
// $this->addSql('DROP INDEX titles_only ON drug_translation');
// $this->addSql('DROP INDEX titles_only ON map_marker_translation');
// $this->addSql('DROP INDEX name ON map_marker_translation');
// $this->addSql('DROP INDEX name ON medical_procedure_translation');
// $this->addSql('DROP INDEX titles_only ON medical_procedure_translation');
// $this->addSql('DROP INDEX name ON page_translation');
// $this->addSql('DROP INDEX titles_only ON page_translation');
$this->addSql('ALTER TABLE patient ADD notifications_email TINYINT(1) DEFAULT NULL, ADD notifications_push TINYINT(1) DEFAULT NULL, ADD notifications_sms TINYINT(1) DEFAULT NULL');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE app_translations RENAME INDEX idx_439c00612469de2 TO IDX_ED8C63D312469DE2');
$this->addSql('ALTER TABLE app_translations RENAME INDEX idx_439c0067987212d TO IDX_ED8C63D37987212D');
$this->addSql('ALTER TABLE app_translations_translation RENAME INDEX app_translations_translation_unique_translation TO app_translation_translation_unique_translation');
$this->addSql('ALTER TABLE app_translations_translation RENAME INDEX idx_6d4a86ff2c2ac5d3 TO IDX_3F806F872C2AC5D3');
$this->addSql('CREATE FULLTEXT INDEX titles_only ON country_translation (name)');
$this->addSql('ALTER TABLE customer RENAME INDEX idx_81398e09f92f3e70 TO FK_81398E09F92F3E70');
$this->addSql('CREATE FULLTEXT INDEX name ON disease_translation (name, description)');
$this->addSql('CREATE FULLTEXT INDEX titles_only ON disease_translation (name)');
$this->addSql('CREATE FULLTEXT INDEX name ON drug_translation (name, description)');
$this->addSql('CREATE FULLTEXT INDEX titles_only ON drug_translation (name)');
$this->addSql('CREATE FULLTEXT INDEX titles_only ON map_marker_translation (name)');
$this->addSql('CREATE FULLTEXT INDEX name ON map_marker_translation (name, description)');
$this->addSql('CREATE FULLTEXT INDEX name ON medical_procedure_translation (name, description)');
$this->addSql('CREATE FULLTEXT INDEX titles_only ON medical_procedure_translation (name)');
$this->addSql('CREATE FULLTEXT INDEX name ON page_translation (name, excerpt, body)');
$this->addSql('CREATE FULLTEXT INDEX titles_only ON page_translation (name)');
$this->addSql('ALTER TABLE patient DROP notifications_email, DROP notifications_push, DROP notifications_sms');
}
}