From 799b958543498360ace342013ccb51b3c07e0dbd Mon Sep 17 00:00:00 2001 From: alemi Date: Mon, 15 Jul 2024 14:21:09 +0200 Subject: [PATCH] fix: oops migration doesnt like default(vec![]) --- .../src/m20240715_000002_add_actors_fields_and_aliases.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/upub/migrations/src/m20240715_000002_add_actors_fields_and_aliases.rs b/upub/migrations/src/m20240715_000002_add_actors_fields_and_aliases.rs index 6d8183b..0c5b29c 100644 --- a/upub/migrations/src/m20240715_000002_add_actors_fields_and_aliases.rs +++ b/upub/migrations/src/m20240715_000002_add_actors_fields_and_aliases.rs @@ -13,8 +13,8 @@ impl MigrationTrait for Migration { Table::alter() .table(Actors::Table) .add_column(ColumnDef::new(Actors::MovedTo).string().null()) - .add_column(ColumnDef::new(Actors::AlsoKnownAs).json_binary().not_null().default::>(vec![])) - .add_column(ColumnDef::new(Actors::Fields).json_binary().not_null().default::>(vec![])) + .add_column(ColumnDef::new(Actors::AlsoKnownAs).json_binary().null()) + .add_column(ColumnDef::new(Actors::Fields).json_binary().null()) .to_owned() ) .await?;