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

Function upgrade

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

Source from the content-addressed store, hash-verified

9
10
11def upgrade(saveddata_engine):
12 for column in ('maxVelocity', 'signatureRadius', 'radius'):
13 try:
14 saveddata_engine.execute("SELECT {} FROM targetResists LIMIT 1;".format(column))
15 except sqlalchemy.exc.DatabaseError:
16 saveddata_engine.execute("ALTER TABLE targetResists ADD COLUMN {} FLOAT;".format(column))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected