Files
ephub/migrations/Version20260917130000.php

27 lines
609 B
PHP

<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20260917130000 extends AbstractMigration
{
public function getDescription(): string
{
return 'Drops the unique (type, label) guard on resources';
}
public function up(Schema $schema): void
{
$this->addSql('DROP INDEX uniq_resource_label ON resource');
}
public function down(Schema $schema): void
{
$this->addSql('CREATE UNIQUE INDEX uniq_resource_label ON resource (type, label)');
}
}