import os
import sys
from logging.config import fileConfig

from alembic import context

sys.path.append(os.getcwd())

from yafas.app import YafasApp  # noqa # isort:skip
from yafas import db  # noqa # isort:skip


fileConfig(context.config.config_file_name)

YafasApp()


with db.engine.connect() as connection:
    context.configure(
        connection=connection,
        target_metadata=db.Base.metadata,
    )

    with context.begin_transaction():
        context.run_migrations()

329a0d64dff2f319e9744a25120168fd9f76627f
<mask token>

<mask token>
sys.path.append(os.getcwd())
<mask token>
fileConfig(context.config.config_file_name)
YafasApp()
with db.engine.connect() as connection:
    context.configure(connection=connection, target_metadata=db.Base.metadata)
    with context.begin_transaction():
        context.run_migrations()

import os
import sys
from logging.config import fileConfig
from alembic import context
sys.path.append(os.getcwd())
from yafas.app import YafasApp
from yafas import db
fileConfig(context.config.config_file_name)
YafasApp()
with db.engine.connect() as connection:
    context.configure(connection=connection, target_metadata=db.Base.metadata)
    with context.begin_transaction():
        context.run_migrations()

import os
import sys
from logging.config import fileConfig

from alembic import context

sys.path.append(os.getcwd())

from yafas.app import YafasApp  # noqa # isort:skip
from yafas import db  # noqa # isort:skip


fileConfig(context.config.config_file_name)

YafasApp()


with db.engine.connect() as connection:
    context.configure(
        connection=connection,
        target_metadata=db.Base.metadata,
    )

    with context.begin_transaction():
        context.run_migrations()
