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

Function upgrade

eos/db/migrations/upgrade13.py:10–16  ·  view source on GitHub ↗
(saveddata_engine)

Source from the content-addressed store, hash-verified

8
9
10def upgrade(saveddata_engine):
11 # Update fits schema to include implant location attribute
12 try:
13 saveddata_engine.execute("SELECT implantLocation FROM fits LIMIT 1")
14 except sqlalchemy.exc.DatabaseError:
15 saveddata_engine.execute("ALTER TABLE fits ADD COLUMN implantLocation INTEGER;")
16 saveddata_engine.execute("UPDATE fits SET implantLocation = 0")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected