change adding origin to be if_not_exists

This commit is contained in:
Bryan Stitt 2022-11-14 06:11:52 +00:00
parent 0f16fdb97a
commit c7f86bf54b

@ -15,7 +15,7 @@ impl MigrationTrait for Migration {
.big_unsigned()
.null(),
)
.add_column(ColumnDef::new(RpcAccounting::Origin).string().null())
.add_column_if_not_exists(ColumnDef::new(RpcAccounting::Origin).string().null())
.to_owned(),
)
.await