From 77dd2def4209cde87c206ba1167b2f2200aff3f9 Mon Sep 17 00:00:00 2001 From: Samuel Lai Date: Fri, 29 Nov 2013 01:42:17 +1100 Subject: [PATCH] Oops, forgot to re-instate the comment index during the backout. --- python/src/stackdump/commands/import_site.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python/src/stackdump/commands/import_site.py b/python/src/stackdump/commands/import_site.py index 6d73323..ebc17c6 100644 --- a/python/src/stackdump/commands/import_site.py +++ b/python/src/stackdump/commands/import_site.py @@ -566,6 +566,8 @@ class Comment(SQLObject): creationDate = DateTimeCol(datetimeFormat=ISO_DATE_FORMAT) userId = IntCol() + siteId_postId_index = DatabaseIndex(siteId, postId) + _connection = comment_db_sqlhub json_fields = [ 'id', 'score', 'text', 'creationDate', 'userId' ]