Skip to content

Commit

Permalink
Rename migration to fix TFS4 - FTS5 switch
Browse files Browse the repository at this point in the history
  • Loading branch information
cmutel committed Oct 2, 2024
1 parent 523930f commit 5401b53
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bw2data/updates.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class Updates:
"automatic": True,
"explanation": "bw2data 4.0 release requires migrations filename changes",
},
"4.0 database search directories": {
"4.0 database search directories FTS5": {
"method": "database_search_directories_40",
"automatic": True,
"explanation": "bw2data 4.0 release switched to a new database search implementation",
Expand Down Expand Up @@ -194,6 +194,7 @@ def schema_change_20_compound_keys(cls):
@classmethod
def database_search_directories_20(cls):
shutil.rmtree(projects.request_directory("whoosh"))
# TBD: Delete existing search index if available
for db in databases:
if databases[db].get("searchable"):
databases[db]["searchable"] = False
Expand Down

0 comments on commit 5401b53

Please sign in to comment.