Pyfa
Pyfa copied to clipboard
Database integrity issue when loading fit with invalid boosters
Bug Report
If a booster is considered invalid when the fit is loaded, the booster is removed. However, the booster side effects are not also removed. This causes integrity exceptions when you attempt to add a new booster to any fit (SQLAlchemy will attempt to reuse the ID that was removed, but that conflicts with the side effects, and things just break)

This is very much an edge case - it's very rare that we store an invalid item as a booster, and rare that eve data update will render it invalid without us intervening with some migration script. It's more a sanity check thing, but should be fixed at some point to remove the side effects when the booster is removed