fix!: unique username+domain, not just username
oops i did it again redo your db
This commit is contained in:
parent
0a19915773
commit
7d1bd9c2bb
1 changed files with 9 additions and 1 deletions
|
@ -170,7 +170,15 @@ impl MigrationTrait for Migration {
|
|||
.await?;
|
||||
|
||||
manager
|
||||
.create_index(Index::create().unique().name("index-actors-preferred-username").table(Actors::Table).col(Actors::PreferredUsername).to_owned())
|
||||
.create_index(
|
||||
Index::create()
|
||||
.unique()
|
||||
.name("index-actors-preferred-username-domain")
|
||||
.table(Actors::Table)
|
||||
.col(Actors::PreferredUsername)
|
||||
.col(Actors::Domain)
|
||||
.to_owned()
|
||||
)
|
||||
.await?;
|
||||
|
||||
manager
|
||||
|
|
Loading…
Reference in a new issue