Skip to content

Commit 8282015

Browse files
Update env.py
1 parent 3899249 commit 8282015

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

backend/alembic/env.py

+7
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1+
2+
13
import logging
24
from alembic import context
35
from oasst_backend import models # noqa: F401
46
from sqlalchemy import engine_from_config, pool
57

68

9+
710
# Read in the Alembic config file.
811
config = context.config
912
# Set up loggers.
@@ -14,6 +17,8 @@
1417
# Other values from the config file can be acquired as follows:
1518
# my_important_option = config.get_main_option("my_important_option")
1619
# ... etc.
20+
21+
1722
def run_migrations_offline() -> None:
1823
"""Run migrations in 'offline' mode.
1924
@@ -27,6 +32,8 @@ def run_migrations_offline() -> None:
2732
)
2833
with context.begin_transaction():
2934
context.run_migrations()
35+
36+
3037
def run_migrations_online() -> None:
3138
"""Run migrations in 'online' mode.
3239

0 commit comments

Comments
 (0)