From a35ff4832f0223184d0a0e5b7773f6cc2bf9f617 Mon Sep 17 00:00:00 2001 From: alemi Date: Sat, 8 Jun 2024 06:25:55 +0200 Subject: [PATCH] fix!: OOOOOPPSSSS use jsonb --- ...000001_create_actor_activity_object_tables.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/upub/migrations/src/m20240524_000001_create_actor_activity_object_tables.rs b/upub/migrations/src/m20240524_000001_create_actor_activity_object_tables.rs index 11dab352..87b06850 100644 --- a/upub/migrations/src/m20240524_000001_create_actor_activity_object_tables.rs +++ b/upub/migrations/src/m20240524_000001_create_actor_activity_object_tables.rs @@ -228,10 +228,10 @@ impl MigrationTrait for Migration { .col(ColumnDef::new(Objects::Announces).integer().not_null().default(0)) .col(ColumnDef::new(Objects::Replies).integer().not_null().default(0)) .col(ColumnDef::new(Objects::Context).string().null()) - .col(ColumnDef::new(Objects::To).json().null()) - .col(ColumnDef::new(Objects::Bto).json().null()) - .col(ColumnDef::new(Objects::Cc).json().null()) - .col(ColumnDef::new(Objects::Bcc).json().null()) + .col(ColumnDef::new(Objects::To).json_binary().null()) + .col(ColumnDef::new(Objects::Bto).json_binary().null()) + .col(ColumnDef::new(Objects::Cc).json_binary().null()) + .col(ColumnDef::new(Objects::Bcc).json_binary().null()) .col(ColumnDef::new(Objects::Published).timestamp_with_time_zone().not_null().default(Expr::current_timestamp())) .col(ColumnDef::new(Objects::Updated).timestamp_with_time_zone().not_null().default(Expr::current_timestamp())) .to_owned() @@ -286,10 +286,10 @@ impl MigrationTrait for Migration { // .on_update(ForeignKeyAction::Cascade) // ) .col(ColumnDef::new(Activities::Target).string().null()) - .col(ColumnDef::new(Activities::To).json().null()) - .col(ColumnDef::new(Activities::Bto).json().null()) - .col(ColumnDef::new(Activities::Cc).json().null()) - .col(ColumnDef::new(Activities::Bcc).json().null()) + .col(ColumnDef::new(Activities::To).json_binary().null()) + .col(ColumnDef::new(Activities::Bto).json_binary().null()) + .col(ColumnDef::new(Activities::Cc).json_binary().null()) + .col(ColumnDef::new(Activities::Bcc).json_binary().null()) .col(ColumnDef::new(Activities::Published).timestamp_with_time_zone().not_null().default(Expr::current_timestamp())) .to_owned() ).await?;