From 783df60f81a1c14c83ac7b3a7b27f30f2b0e8ff8 Mon Sep 17 00:00:00 2001 From: asonix Date: Wed, 6 Sep 2023 20:49:00 -0500 Subject: [PATCH] Fix on_conflict for postgres store migration path --- src/repo/postgres.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/repo/postgres.rs b/src/repo/postgres.rs index 40bfe57..a5e4679 100644 --- a/src/repo/postgres.rs +++ b/src/repo/postgres.rs @@ -1322,7 +1322,7 @@ impl StoreMigrationRepo for PostgresRepo { old_identifier.eq(input_old_identifier.as_ref()), new_identifier.eq(input_new_identifier.as_ref()), )) - .on_conflict((old_identifier, new_identifier)) + .on_conflict(old_identifier) .do_nothing() .execute(&mut conn) .with_metrics("pict-rs.postgres.store-migration.mark-migrated")