fix!: unique username+domain, not just username

oops i did it again redo your db
This commit is contained in:
əlemi 2024-05-28 02:08:09 +02:00
parent 0a19915773
commit 7d1bd9c2bb
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -170,7 +170,15 @@ impl MigrationTrait for Migration {
.await?; .await?;
manager 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?; .await?;
manager manager