1
0
mirror of https://codeberg.org/diginaut/digimarks.git synced 2026-02-04 15:00:26 +01:00

Formatting and docstring improvements to the DB migrations

This commit is contained in:
2025-11-06 13:50:48 +01:00
parent 8810a47faa
commit a7498a2fba
4 changed files with 104 additions and 101 deletions

View File

@@ -1,3 +1,5 @@
"""Alembic environment file for SQLAlchemy."""
import asyncio
from logging.config import fileConfig
@@ -7,7 +9,7 @@ from sqlalchemy.engine import Connection
from sqlalchemy.ext.asyncio import async_engine_from_config
from sqlmodel import SQLModel
from src.digimarks.models import Bookmark, PublicTag, User
from src.digimarks.models import Bookmark, PublicTag, User # noqa
# this is the Alembic Config object, which provides
# access to the values within the .ini file in use.
@@ -56,6 +58,7 @@ def run_migrations_offline() -> None:
def do_run_migrations(connection: Connection) -> None:
"""Run the migrations."""
context.configure(
connection=connection,
target_metadata=target_metadata,