fix: oops migration doesnt like default(vec![])
This commit is contained in:
parent
960f7be291
commit
799b958543
1 changed files with 2 additions and 2 deletions
|
@ -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<String>>(vec![]))
|
||||
.add_column(ColumnDef::new(Actors::Fields).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().null())
|
||||
.to_owned()
|
||||
)
|
||||
.await?;
|
||||
|
|
Loading…
Reference in a new issue