MCPcopy Index your code
hub / github.com/pgadmin-org/pgadmin4 / get_version

Function get_version

web/pgadmin/setup/db_version.py:14–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12
13
14def get_version():
15 try:
16 version = Version.query.filter_by(name='ConfigDB').first()
17 except Exception:
18 db.session.rollback()
19 return -1
20
21 if version:
22 return version.value
23 else:
24 return -1
25
26
27def get_version_for_migration(op):

Callers 2

run_migration_for_sqliteFunction · 0.90
run_migration_for_othersFunction · 0.90

Calls 1

firstMethod · 0.65

Tested by

no test coverage detected