Commit 3f5a057e authored by Michal Čihař's avatar Michal Čihař

Fix migration of target indexes

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 6c74e5f2
......@@ -149,9 +149,9 @@ def get_target_index(lang):
create_target_index(lang)
index = STORAGE.open_index(name)
if 'comment' not in index.schema:
index.add_field('comment', TEXT)
index.add_field('comment', TEXT())
if 'pk' not in index.schema:
index.add_field('pk', NUMERIC)
index.add_field('pk', NUMERIC(stored=True, unique=True))
if 'checksum' in index.schema:
index.remove_field('checksum')
return index
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment