mirror of
https://github.com/aquatix/digimarks.git
synced 2025-12-06 22:05:09 +01:00
Point alembic config to the new models module
This commit is contained in:
@@ -7,7 +7,7 @@ from sqlalchemy.engine import Connection
|
|||||||
from sqlalchemy.ext.asyncio import async_engine_from_config
|
from sqlalchemy.ext.asyncio import async_engine_from_config
|
||||||
from sqlmodel import SQLModel
|
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
|
# this is the Alembic Config object, which provides
|
||||||
# access to the values within the .ini file in use.
|
# access to the values within the .ini file in use.
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ class Bookmark(SQLModel, table=True):
|
|||||||
class PublicTag(SQLModel, table=True):
|
class PublicTag(SQLModel, table=True):
|
||||||
"""Public tag object."""
|
"""Public tag object."""
|
||||||
|
|
||||||
__tablename__ = 'public_tag'
|
__tablename__ = 'publictag'
|
||||||
|
|
||||||
id: int = Field(primary_key=True)
|
id: int = Field(primary_key=True)
|
||||||
tagkey: str
|
tagkey: str
|
||||||
|
|||||||
Reference in New Issue
Block a user