summaryrefslogtreecommitdiff
path: root/cli/app/sql/env.py
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-06-02 02:46:00 +0200
committerJules Laplace <julescarbon@gmail.com>2020-06-02 02:46:00 +0200
commit42d5e59335d97aa0cf165f2aedf8d04f60db9310 (patch)
tree5e80fff38d2e197cd9005b0c0e67fe2fba780d96 /cli/app/sql/env.py
parent3bcae4c2cfbef73cac81cedbbe74426f17d90099 (diff)
comment about import order
Diffstat (limited to 'cli/app/sql/env.py')
-rw-r--r--cli/app/sql/env.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/cli/app/sql/env.py b/cli/app/sql/env.py
index 1bf717f..7753565 100644
--- a/cli/app/sql/env.py
+++ b/cli/app/sql/env.py
@@ -13,6 +13,7 @@ config.set_main_option("sqlalchemy.url", connection_url)
target_metadata = Base.metadata
+# include the models in reverse dependency order, so relationships work
from app.sql.models.tile import Tile
from app.sql.models.page import Page
from app.sql.models.graph import Graph