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

Function upgrade

eos/db/migrations/upgrade30.py:11–17  ·  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 status FROM prices LIMIT 1")
14 except sqlalchemy.exc.DatabaseError:
15 # Just drop table, table will be re-created by sqlalchemy and
16 # data will be re-fetched
17 saveddata_engine.execute("DROP TABLE prices;")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected