From 94877ae1ed905a197a0c037e75494500a1f316b4 Mon Sep 17 00:00:00 2001 From: kompotkot Date: Tue, 27 Jul 2021 21:22:14 +0000 Subject: [PATCH] Typo in import in moonstreamdb mmodule --- db/alembic.sh | 3 +++ db/alembic/env.py | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100755 db/alembic.sh diff --git a/db/alembic.sh b/db/alembic.sh new file mode 100755 index 00000000..9ca8b9b8 --- /dev/null +++ b/db/alembic.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env sh + +PYTHONPATH=".:$PYTHONPATH" alembic "$@" diff --git a/db/alembic/env.py b/db/alembic/env.py index 45fd93f2..695e4078 100644 --- a/db/alembic/env.py +++ b/db/alembic/env.py @@ -17,7 +17,7 @@ fileConfig(config.config_file_name) # for 'autogenerate' support # from myapp import mymodel # target_metadata = mymodel.Base.metadata -from db.models import Base as ExplorationBase +from moonstreamdb.models import Base as ExplorationBase target_metadata = ExplorationBase.metadata @@ -25,7 +25,7 @@ target_metadata = ExplorationBase.metadata # can be acquired: # my_important_option = config.get_main_option("my_important_option") # ... etc. -from db.models import EthereumBlock, EthereumTransaction, EthereumPendingTransaction +from moonstreamdb.models import EthereumBlock, EthereumTransaction, EthereumPendingTransaction def include_symbol(tablename, schema):