Skip to content

Commit

Permalink
fixing migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
jaesivsm committed Feb 18, 2018
1 parent 97c9cc5 commit a4f8385
Show file tree
Hide file tree
Showing 26 changed files with 3 additions and 3 deletions.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions jarr/migrations/env.py → migrations/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from flask import current_app
from sqlalchemy import engine_from_config, pool

from jarr.bootstrap import conf, set_logging
from jarr.bootstrap import conf, init_logging

# this is the Alembic Config object, which provides
# access to the values within the .ini file in use.
Expand All @@ -17,9 +17,9 @@
# Interpret the config file for Python logging.
# This line sets up loggers basically.
log_format = '%(levelname)s [%(name)s] %(message)s'
set_logging(modules=('root', 'sqlalchemy'), log_format=log_format,
init_logging(modules=('root', 'sqlalchemy'), log_format=log_format,
log_level=logging.WARNING)
set_logging(modules=('alembic'), log_format=log_format)
init_logging(modules=('alembic'), log_format=log_format)

config.set_main_option('sqlalchemy.url', conf.sqlalchemy.db_uri)
target_metadata = current_app.extensions['migrate'].db.metadata
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit a4f8385

Please sign in to comment.