mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-03 20:13:02 +00:00
index filepaths
This commit is contained in:
+1
-1
@@ -116,7 +116,7 @@ class TrackTable(Base):
|
|||||||
date: Mapped[int] = mapped_column(Integer(), nullable=True)
|
date: Mapped[int] = mapped_column(Integer(), nullable=True)
|
||||||
disc: Mapped[int] = mapped_column(Integer())
|
disc: Mapped[int] = mapped_column(Integer())
|
||||||
duration: Mapped[int] = mapped_column(Integer())
|
duration: Mapped[int] = mapped_column(Integer())
|
||||||
filepath: Mapped[str] = mapped_column(String(), unique=True)
|
filepath: Mapped[str] = mapped_column(String(), index=True, unique=True)
|
||||||
folder: Mapped[str] = mapped_column(String(), index=True)
|
folder: Mapped[str] = mapped_column(String(), index=True)
|
||||||
genrehashes: Mapped[list[str]] = mapped_column(JSON(), index=True)
|
genrehashes: Mapped[list[str]] = mapped_column(JSON(), index=True)
|
||||||
genres: Mapped[Optional[list[dict[str, str]]]] = mapped_column(JSON())
|
genres: Mapped[Optional[list[dict[str, str]]]] = mapped_column(JSON())
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ Applies migrations.
|
|||||||
|
|
||||||
from sqlalchemy import create_engine
|
from sqlalchemy import create_engine
|
||||||
from app.db.userdata import UserTable
|
from app.db.userdata import UserTable
|
||||||
from app.db.sqlite import create_connection, create_tables, queries
|
|
||||||
from app.db.sqlite.auth import SQLiteAuthMethods as authdb
|
from app.db.sqlite.auth import SQLiteAuthMethods as authdb
|
||||||
from app.migrations import apply_migrations
|
from app.migrations import apply_migrations
|
||||||
from app.settings import Db
|
from app.settings import Db
|
||||||
|
|||||||
Reference in New Issue
Block a user