fix: oops migration doesnt like default(vec![])

This commit is contained in:
əlemi 2024-07-15 14:21:09 +02:00
parent 960f7be291
commit 799b958543
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -13,8 +13,8 @@ impl MigrationTrait for Migration {
Table::alter() Table::alter()
.table(Actors::Table) .table(Actors::Table)
.add_column(ColumnDef::new(Actors::MovedTo).string().null()) .add_column(ColumnDef::new(Actors::MovedTo).string().null())
.add_column(ColumnDef::new(Actors::AlsoKnownAs).json_binary().not_null().default::<Vec<String>>(vec![])) .add_column(ColumnDef::new(Actors::AlsoKnownAs).json_binary().null())
.add_column(ColumnDef::new(Actors::Fields).json_binary().not_null().default::<Vec<String>>(vec![])) .add_column(ColumnDef::new(Actors::Fields).json_binary().null())
.to_owned() .to_owned()
) )
.await?; .await?;