Skip to content

Commit a9a5764

Browse files
committed
Merge branch 'master' into meta-views
2 parents c400a1f + 83a2524 commit a9a5764

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

app/model/entity/User.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public function getName()
9696
protected $titlesAfterName;
9797

9898
/**
99-
* @ORM\Column(type="string")
99+
* @ORM\Column(type="string", unique=true)
100100
*/
101101
protected $email;
102102

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace Migrations;
6+
7+
use Doctrine\DBAL\Schema\Schema;
8+
use Doctrine\Migrations\AbstractMigration;
9+
10+
/**
11+
* Auto-generated Migration: Please modify to your needs!
12+
*/
13+
final class Version20250220202930 extends AbstractMigration
14+
{
15+
public function getDescription(): string
16+
{
17+
return '';
18+
}
19+
20+
public function up(Schema $schema): void
21+
{
22+
// this up() migration is auto-generated, please modify it to your needs
23+
$this->addSql('CREATE UNIQUE INDEX UNIQ_8D93D649E7927C74 ON user (email)');
24+
}
25+
26+
public function down(Schema $schema): void
27+
{
28+
// this down() migration is auto-generated, please modify it to your needs
29+
$this->addSql('DROP INDEX UNIQ_8D93D649E7927C74 ON user');
30+
}
31+
}

0 commit comments

Comments
 (0)