feat: allow duplicate resource names, show the room next to the name

This commit is contained in:
fromme committed 2026-09-17 18:40:53 +02:00
1 parent 84724879c7
commit d37d8bc786
8 files changed
+39 -21

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
<?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)');
}
}