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

Function upgrade

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

Source from the content-addressed store, hash-verified

6
7
8def upgrade(saveddata_engine):
9 sql = """
10 DELETE FROM modules WHERE ID IN
11 (
12 SELECT m.ID FROM modules AS m
13 JOIN fits AS f ON m.fitID = f.ID
14 WHERE f.shipID IN ("35832", "35833", "35834", "40340")
15 AND m.projected = 1
16 )
17 """
18
19 saveddata_engine.execute(sql)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected