Skip to content

Commit 955f4b1

Browse files
committed
correct on conflict clause
1 parent c2082c1 commit 955f4b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/core/infrastructure/persistence/passport_repository.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ const (
6464
signature_image,
6565
remarks
6666
) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19)
67-
ON CONFLICT (passport_number) DO UPDATE SET
67+
ON CONFLICT (passport_number, series) DO UPDATE SET
6868
first_name = COALESCE(NULLIF(EXCLUDED.first_name, ''), passports.first_name),
6969
last_name = COALESCE(NULLIF(EXCLUDED.last_name, ''), passports.last_name),
7070
middle_name = COALESCE(NULLIF(EXCLUDED.middle_name, ''), passports.middle_name)

0 commit comments

Comments
 (0)