diff --git a/datamodelutils/postgres_admin.py b/datamodelutils/postgres_admin.py index 48caafe..d5da953 100644 --- a/datamodelutils/postgres_admin.py +++ b/datamodelutils/postgres_admin.py @@ -163,7 +163,7 @@ def check_version(driver): loaded in memory. False if the database doesn't track version """ if "root" in dictionary.schema: - if not (driver.engine.dialect.has_table(driver.engine, "node_root")): + if not sa.inspect(driver.engine).has_table("node_root"): return False with driver.session_scope(): root_node = driver.nodes(models.Root).first() diff --git a/pyproject.toml b/pyproject.toml index dc53cf9..d5d5a97 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "datamodelutils" -version = "1.1.1" +version = "1.1.2" description = "Gen3 Data Model Utils" authors = ["CTDS UChicago "] license = "Apache-2.0"