2
0
Fork 0
mirror of https://git.asonix.dog/asonix/pict-rs synced 2024-11-10 06:25:00 +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()), old_identifier.eq(input_old_identifier.as_ref()),
new_identifier.eq(input_new_identifier.as_ref()), new_identifier.eq(input_new_identifier.as_ref()),
)) ))
.on_conflict((old_identifier, new_identifier)) .on_conflict(old_identifier)
.do_nothing() .do_nothing()
.execute(&mut conn) .execute(&mut conn)
.with_metrics("pict-rs.postgres.store-migration.mark-migrated") .with_metrics("pict-rs.postgres.store-migration.mark-migrated")