diff --git a/src/migrations/m20240524_000001_create_actor_activity_object_tables.rs b/src/migrations/m20240524_000001_create_actor_activity_object_tables.rs index a7143afc..72cd8061 100644 --- a/src/migrations/m20240524_000001_create_actor_activity_object_tables.rs +++ b/src/migrations/m20240524_000001_create_actor_activity_object_tables.rs @@ -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