You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, this means that the database file is not removed. If you then reinstate a database with the same name IndexManager.create() is not called as os.path.exists(self.path) will validate as true.
This in turn leads to no tables being created in the database, which in turn leads to activities not being able to be saved because of the following exception:
Issue in short: When you delete a searchable database and create one with the same name, you cannot properly create activities within it anymore.
When you delete a database, the
IndexManager
deletes the accompanied search database by dropping the tables as follows:brightway2-data/bw2data/search/indices.py
Lines 80 to 83 in 4fd8e93
However, this means that the database file is not removed. If you then reinstate a database with the same name
IndexManager.create()
is not called asos.path.exists(self.path)
will validate as true.brightway2-data/bw2data/search/indices.py
Lines 13 to 18 in 4fd8e93
This in turn leads to no tables being created in the database, which in turn leads to activities not being able to be saved because of the following exception:
The text was updated successfully, but these errors were encountered: