From c7f86bf54baa554b50aae657911872f316547d1d Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Mon, 14 Nov 2022 06:11:52 +0000 Subject: [PATCH] change adding origin to be if_not_exists --- migration/src/m20221108_200345_save_anon_stats.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migration/src/m20221108_200345_save_anon_stats.rs b/migration/src/m20221108_200345_save_anon_stats.rs index 56f6125a..81b65fd0 100644 --- a/migration/src/m20221108_200345_save_anon_stats.rs +++ b/migration/src/m20221108_200345_save_anon_stats.rs @@ -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