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

Function upgrade

eos/db/migrations/upgrade49.py:11–15  ·  view source on GitHub ↗
(saveddata_engine)

Source from the content-addressed store, hash-verified

9
10
11def upgrade(saveddata_engine):
12 try:
13 saveddata_engine.execute("SELECT hp FROM targetResists LIMIT 1;")
14 except sqlalchemy.exc.DatabaseError:
15 saveddata_engine.execute("ALTER TABLE targetResists ADD COLUMN hp FLOAT;")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected