1
0
Fork 0
forked from alemi/upub

fix!: more preferred_username fixes

This commit is contained in:
əlemi 2024-05-28 02:12:29 +02:00
parent 7d1bd9c2bb
commit 1b08321d34
Signed by: alemi
GPG key ID: A4895B84D311642C
2 changed files with 1 additions and 2 deletions

View file

@ -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())

View file

@ -17,7 +17,6 @@ pub struct Model {
pub summary: Option<String>,
pub image: Option<String>,
pub icon: Option<String>,
#[sea_orm(unique)]
pub preferred_username: String,
pub inbox: Option<String>,
pub shared_inbox: Option<String>,