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

Function upgrade

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

Source from the content-addressed store, hash-verified

8
9
10def upgrade(saveddata_engine):
11 try:
12 saveddata_engine.execute("SELECT baseItemID FROM drones LIMIT 1")
13 except sqlalchemy.exc.DatabaseError:
14 saveddata_engine.execute("ALTER TABLE drones ADD COLUMN baseItemID INTEGER;")
15 try:
16 saveddata_engine.execute("SELECT mutaplasmidID FROM drones LIMIT 1")
17 except sqlalchemy.exc.DatabaseError:
18 saveddata_engine.execute("ALTER TABLE drones ADD COLUMN mutaplasmidID INTEGER;")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected