2
0
Fork 0
mirror of https://git.asonix.dog/asonix/pict-rs synced 2024-12-22 19:31:35 +00:00

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

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