Skip to content

Commit 08a3554

Browse files
author
Marcel Diegelmann
committed
Füge eindeutigen Index zu parts.ipn wieder hinzu.
1 parent fb07f2a commit 08a3554

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace DoctrineMigrations;
6+
7+
use Doctrine\DBAL\Schema\Schema;
8+
use Doctrine\Migrations\AbstractMigration;
9+
10+
final class Version20251010125849 extends AbstractMigration
11+
{
12+
public function getDescription(): string
13+
{
14+
return 'Add unique index to parts.ipn again';
15+
}
16+
17+
public function up(Schema $schema): void
18+
{
19+
$this->addSql('CREATE UNIQUE INDEX UNIQ_6940A7FE3D721C14 ON parts (ipn)');
20+
}
21+
22+
public function down(Schema $schema): void
23+
{
24+
$this->addSql('DROP INDEX UNIQ_6940A7FE3D721C14 ON `parts`');
25+
}
26+
}

0 commit comments

Comments
 (0)