aboutsummaryrefslogtreecommitdiff
path: root/fietsboek/alembic/env.py
diff options
context:
space:
mode:
Diffstat (limited to 'fietsboek/alembic/env.py')
-rw-r--r--fietsboek/alembic/env.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/fietsboek/alembic/env.py b/fietsboek/alembic/env.py
index ae79f02..644d98b 100644
--- a/fietsboek/alembic/env.py
+++ b/fietsboek/alembic/env.py
@@ -25,7 +25,7 @@ def run_migrations_offline():
script output.
"""
- context.configure(url=settings['sqlalchemy.url'])
+ context.configure(url=settings["sqlalchemy.url"])
with context.begin_transaction():
context.run_migrations()
@@ -37,13 +37,10 @@ def run_migrations_online():
and associate a connection with the context.
"""
- engine = engine_from_config(settings, prefix='sqlalchemy.')
+ engine = engine_from_config(settings, prefix="sqlalchemy.")
connection = engine.connect()
- context.configure(
- connection=connection,
- target_metadata=target_metadata
- )
+ context.configure(connection=connection, target_metadata=target_metadata)
try:
with context.begin_transaction():