forked from alemi/upub
fix!: more preferred_username fixes
This commit is contained in:
parent
7d1bd9c2bb
commit
1b08321d34
2 changed files with 1 additions and 2 deletions
|
@ -148,7 +148,7 @@ impl MigrationTrait for Migration {
|
||||||
.col(ColumnDef::new(Actors::Summary).string().null())
|
.col(ColumnDef::new(Actors::Summary).string().null())
|
||||||
.col(ColumnDef::new(Actors::Image).string().null())
|
.col(ColumnDef::new(Actors::Image).string().null())
|
||||||
.col(ColumnDef::new(Actors::Icon).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::Inbox).string().null())
|
||||||
.col(ColumnDef::new(Actors::SharedInbox).string().null())
|
.col(ColumnDef::new(Actors::SharedInbox).string().null())
|
||||||
.col(ColumnDef::new(Actors::Outbox).string().null())
|
.col(ColumnDef::new(Actors::Outbox).string().null())
|
||||||
|
|
|
@ -17,7 +17,6 @@ pub struct Model {
|
||||||
pub summary: Option<String>,
|
pub summary: Option<String>,
|
||||||
pub image: Option<String>,
|
pub image: Option<String>,
|
||||||
pub icon: Option<String>,
|
pub icon: Option<String>,
|
||||||
#[sea_orm(unique)]
|
|
||||||
pub preferred_username: String,
|
pub preferred_username: String,
|
||||||
pub inbox: Option<String>,
|
pub inbox: Option<String>,
|
||||||
pub shared_inbox: Option<String>,
|
pub shared_inbox: Option<String>,
|
||||||
|
|
Loading…
Reference in a new issue