Remove command fitting from the command fits context menu upon deletion (#1244)
This commit is contained in:
11
eos/db/migrations/upgrade26.py
Normal file
11
eos/db/migrations/upgrade26.py
Normal file
@@ -0,0 +1,11 @@
|
||||
"""
|
||||
Migration 26
|
||||
|
||||
- Deletes invalid command fit relationships caused by a bug (see #1244)
|
||||
"""
|
||||
|
||||
import sqlalchemy
|
||||
|
||||
|
||||
def upgrade(saveddata_engine):
|
||||
saveddata_engine.execute("DELETE FROM commandFits WHERE boosterID NOT IN (SELECT ID FROM fits) OR boostedID NOT IN (SELECT ID FROM fits)")
|
||||
Reference in New Issue
Block a user