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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user