From 9e27418f8015854465bc22df162249341ac60159 Mon Sep 17 00:00:00 2001 From: Keith Edmunds Date: Sat, 22 Feb 2025 20:13:44 +0000 Subject: [PATCH] Remove queries table definition It mistakenly was introduced to the wrong branch. It persists on the query_tabs branch. --- app/dbtables.py | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/app/dbtables.py b/app/dbtables.py index a23a79f..176a346 100644 --- a/app/dbtables.py +++ b/app/dbtables.py @@ -80,9 +80,6 @@ class PlaylistsTable(Model): cascade="all, delete-orphan", order_by="PlaylistRowsTable.row_number", ) - query: Mapped["QueriesTable"] = relationship( - back_populates="playlist", cascade="all, delete-orphan" - ) def __repr__(self) -> str: return ( @@ -121,20 +118,6 @@ class PlaylistRowsTable(Model): ) -class QueriesTable(Model): - __tablename__ = "queries" - - id: Mapped[int] = mapped_column(primary_key=True, autoincrement=True) - query: Mapped[str] = mapped_column( - String(2048), index=False, default="", nullable=False - ) - playlist_id: Mapped[int] = mapped_column(ForeignKey("playlists.id"), index=True) - playlist: Mapped[PlaylistsTable] = relationship(back_populates="query") - - def __repr__(self) -> str: - return f"" - - class SettingsTable(Model): """Manage settings"""