From dce03ff3498a9c6067723f8115f9466341bd8f7c Mon Sep 17 00:00:00 2001 From: Stuart Longland Date: Tue, 1 Jan 2019 19:08:23 +1000 Subject: [PATCH] crawler: Fix constraint name for `word` --- hadsh/crawler/crawler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadsh/crawler/crawler.py b/hadsh/crawler/crawler.py index bea280a..7dbdfa9 100644 --- a/hadsh/crawler/crawler.py +++ b/hadsh/crawler/crawler.py @@ -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