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):