migrations/Version20220524124835.php line 1

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace DoctrineMigrations;
  4. use Doctrine\DBAL\Schema\Schema;
  5. /**
  6.  * Auto-generated Migration: Please modify to your needs!
  7.  */
  8. final class Version20220524124835 extends AbstractMigration
  9. {
  10.     public function getDescription(): string
  11.     {
  12.         return '';
  13.     }
  14.     public function up(Schema $schema): void
  15.     {
  16.         // this up() migration is auto-generated, please modify it to your needs
  17.         $this->addSql('CREATE UNIQUE INDEX UNIQ_9D5CF320B5A459A04180C698 ON news_translation (news_id, locale)');
  18.     }
  19.     public function down(Schema $schema): void
  20.     {
  21.         // this down() migration is auto-generated, please modify it to your needs
  22.         $this->addSql('DROP INDEX UNIQ_9D5CF320B5A459A04180C698 ON news_translation');
  23.     }
  24. }