MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / get_version_for_migration

Function get_version_for_migration

web/pgadmin/setup/db_version.py:27–37  ·  view source on GitHub ↗
(op)

Source from the content-addressed store, hash-verified

25
26
27def get_version_for_migration(op):
28 try:
29 session = Session(bind=op.get_bind())
30 version = session.query(Version).filter_by(name='ConfigDB').first()
31 except Exception:
32 return -1
33
34 if version:
35 return version.value
36 else:
37 return -1
38
39
40def set_version(new_version):

Callers 1

upgradeFunction · 0.90

Calls 1

firstMethod · 0.65

Tested by

no test coverage detected