crawler: Fix constraint name for word

This commit is contained in:
Stuart Longland 2019-01-01 19:08:23 +10:00
parent c284fba339
commit dce03ff349
Signed by: stuartl
GPG Key ID: 6AA32EFB18079BAA

View File

@ -465,7 +465,7 @@ class Crawler(object):
(word, score, count)
VALUES
%(insert_template)s
ON CONFLICT ON CONSTRAINT word_pkey DO NOTHING
ON CONFLICT ON CONSTRAINT ix_word_word DO NOTHING
''' % {
'insert_template': ', '.join([
'(%s, 0, 0)' for x