Skip to content

Commit

Permalink
[alembic] Don't load config from Alembic env.py
Browse files Browse the repository at this point in the history
Alembic is ran from koschei-admin wrapper, which is responsible for
loading up config -- there is no need to load config for the second
time.
  • Loading branch information
mizdebsk committed Sep 24, 2019
1 parent fe46617 commit 28a4812
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions alembic/env.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
from alembic import context
from logging.config import fileConfig

from koschei.config import load_config
from koschei.db import Base, grant_db_access, get_engine

load_config(['/usr/share/koschei/config.cfg', '/etc/koschei/config-admin.cfg'])

# this is the Alembic Config object, which provides
# access to the values within the .ini file in use.
config = context.config
Expand Down

0 comments on commit 28a4812

Please sign in to comment.