We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3899249 commit 8282015Copy full SHA for 8282015
backend/alembic/env.py
@@ -1,9 +1,12 @@
1
+
2
3
import logging
4
from alembic import context
5
from oasst_backend import models # noqa: F401
6
from sqlalchemy import engine_from_config, pool
7
8
9
10
# Read in the Alembic config file.
11
config = context.config
12
# Set up loggers.
@@ -14,6 +17,8 @@
14
17
# Other values from the config file can be acquired as follows:
15
18
# my_important_option = config.get_main_option("my_important_option")
16
19
# ... etc.
20
21
22
def run_migrations_offline() -> None:
23
"""Run migrations in 'offline' mode.
24
@@ -27,6 +32,8 @@ def run_migrations_offline() -> None:
27
32
)
28
33
with context.begin_transaction():
29
34
context.run_migrations()
35
36
30
37
def run_migrations_online() -> None:
31
38
"""Run migrations in 'online' mode.
39
0 commit comments