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

Function upgrade

eos/db/migrations/upgrade16.py:10–15  ·  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 notes attribute
12 try:
13 saveddata_engine.execute("SELECT notes FROM fits LIMIT 1")
14 except sqlalchemy.exc.DatabaseError:
15 saveddata_engine.execute("ALTER TABLE fits ADD COLUMN notes VARCHAR;")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected