fix alembic settings

This commit is contained in:
s.mostryukov 2024-10-02 10:19:30 +03:00
parent fab771129d
commit 8ec2ed1ebd
2 changed files with 4 additions and 2 deletions

View File

@ -30,7 +30,7 @@ target_metadata = Base.metadata
# ... etc.
from config import settings
config.set_main_option("sqlalchemy.url", settings.db_url)
config.set_main_option("sqlalchemy.url", str(settings.db.url))
def run_migrations_offline() -> None:

View File

@ -1,3 +1,5 @@
from .check_available_ports import start_check as check_available_ports
__all__ = ["check_available_ports"]
__all__ = [
"check_available_ports",
]