diff --git a/invokeai/app/services/shared/sqlite/sqlite_database.py b/invokeai/app/services/shared/sqlite/sqlite_database.py index 017cea0fe1..10d63c44e7 100644 --- a/invokeai/app/services/shared/sqlite/sqlite_database.py +++ b/invokeai/app/services/shared/sqlite/sqlite_database.py @@ -37,6 +37,7 @@ class SqliteDatabase: def reinitialize(self) -> None: """Reinitializes the database. Needed after migration.""" + self.close() self.initialize(self._config, self._logger) def close(self) -> None: