From f4afa34f69304e0145f5eaa6cee76684be106240 Mon Sep 17 00:00:00 2001 From: Michiel Scholten Date: Fri, 12 Sep 2025 12:30:14 +0200 Subject: [PATCH] Point alembic config to the new models module --- migrations/env.py | 2 +- src/digimarks/models.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/migrations/env.py b/migrations/env.py index db84064..caa32bf 100644 --- a/migrations/env.py +++ b/migrations/env.py @@ -7,7 +7,7 @@ from sqlalchemy.engine import Connection from sqlalchemy.ext.asyncio import async_engine_from_config from sqlmodel import SQLModel -from src.digimarks.main import Bookmark, PublicTag, User +from src.digimarks.models import Bookmark, PublicTag, User # this is the Alembic Config object, which provides # access to the values within the .ini file in use. diff --git a/src/digimarks/models.py b/src/digimarks/models.py index 6e2c47d..bf1c731 100644 --- a/src/digimarks/models.py +++ b/src/digimarks/models.py @@ -98,7 +98,7 @@ class Bookmark(SQLModel, table=True): class PublicTag(SQLModel, table=True): """Public tag object.""" - __tablename__ = 'public_tag' + __tablename__ = 'publictag' id: int = Field(primary_key=True) tagkey: str