From 1b08321d34f8dc9fb89026e0be7f18f4a251ff0b Mon Sep 17 00:00:00 2001 From: alemi Date: Tue, 28 May 2024 02:12:29 +0200 Subject: [PATCH] fix!: more preferred_username fixes --- .../m20240524_000001_create_actor_activity_object_tables.rs | 2 +- src/model/actor.rs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) 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 72cd8061..ffb018cc 100644 --- a/src/migrations/m20240524_000001_create_actor_activity_object_tables.rs +++ b/src/migrations/m20240524_000001_create_actor_activity_object_tables.rs @@ -148,7 +148,7 @@ impl MigrationTrait for Migration { .col(ColumnDef::new(Actors::Summary).string().null()) .col(ColumnDef::new(Actors::Image).string().null()) .col(ColumnDef::new(Actors::Icon).string().null()) - .col(ColumnDef::new(Actors::PreferredUsername).string().not_null().unique_key()) + .col(ColumnDef::new(Actors::PreferredUsername).string().not_null()) .col(ColumnDef::new(Actors::Inbox).string().null()) .col(ColumnDef::new(Actors::SharedInbox).string().null()) .col(ColumnDef::new(Actors::Outbox).string().null()) diff --git a/src/model/actor.rs b/src/model/actor.rs index b2d3b775..92f2ed59 100644 --- a/src/model/actor.rs +++ b/src/model/actor.rs @@ -17,7 +17,6 @@ pub struct Model { pub summary: Option, pub image: Option, pub icon: Option, - #[sea_orm(unique)] pub preferred_username: String, pub inbox: Option, pub shared_inbox: Option,