add indexer field to IndexerQueryResult and update related components; display indexer name to use

This commit is contained in:
maxDorninger
2025-10-28 22:17:00 +01:00
parent fdffa38c92
commit bae3906063
15 changed files with 3778 additions and 3841 deletions

View File

@@ -89,7 +89,7 @@ def upgrade() -> None:
"indexer_query_result",
sa.Column("id", sa.UUID(), nullable=False),
sa.Column("title", sa.String(), nullable=False),
sa.Column("download_url", sa.String(), nullable=False),
sa.Column("_download_url", sa.String(), nullable=False),
sa.Column("seeders", sa.Integer(), nullable=False),
sa.Column("flags", postgresql.ARRAY(sa.String()), nullable=True),
sa.Column(

View File

@@ -0,0 +1,35 @@
"""add_indexer_column_to_indexerqueryresult
Revision ID: eb0bd3cc1852
Revises: 5299dfed220b
Create Date: 2025-10-28 21:39:24.480466
"""
from typing import Sequence, Union
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision: str = "eb0bd3cc1852"
down_revision: Union[str, None] = "5299dfed220b"
branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None
def upgrade() -> None:
"""Upgrade schema."""
# ### commands auto generated by Alembic - please adjust! ###
op.add_column(
"indexer_query_result", sa.Column("indexer", sa.String(), nullable=True)
)
# ### end Alembic commands ###
def downgrade() -> None:
"""Downgrade schema."""
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column("indexer_query_result", "indexer")
# ### end Alembic commands ###