MCPcopy Create free account
hub / github.com/pyfa-org/Pyfa / upgrade

Function upgrade

eos/db/migrations/upgrade19.py:8–18  ·  view source on GitHub ↗
(saveddata_engine)

Source from the content-addressed store, hash-verified

6
7
8def upgrade(saveddata_engine):
9 from eos.db import saveddata_session
10
11 sql = """
12 DELETE FROM commandFits
13 WHERE boosterID NOT IN (select ID from fits)
14 OR boostedID NOT IN (select ID from fits)
15 """
16
17 saveddata_session.execute(sql)
18 saveddata_session.commit()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected