Commit 32370b62 authored by Michal Čihař's avatar Michal Čihař

Fix fulltext index migration

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent e47aaa13
...@@ -127,9 +127,9 @@ def get_source_index(): ...@@ -127,9 +127,9 @@ def get_source_index():
create_source_index() create_source_index()
index = STORAGE.open_index('source') index = STORAGE.open_index('source')
if 'location' not in index.schema: if 'location' not in index.schema:
index.add_field('location', TEXT) index.add_field('location', TEXT())
if 'pk' not in index.schema: 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: if 'checksum' in index.schema:
index.remove_field('checksum') index.remove_field('checksum')
return index 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