Fix on_conflict for postgres store migration path

This commit is contained in:
asonix 2023-09-06 20:49:00 -05:00
parent a761daca34
commit 783df60f81
1 changed files with 1 additions and 1 deletions

View File

@ -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")