refactor(db): shim podcasts.search_space_id to physical workspace_id

Phase 1 (rename DB) commit 1e: attribute->physical column shim on the
podcasts satellite model. ORM attribute and relationship unchanged.
This commit is contained in:
CREDO23 2026-06-26 12:12:13 +02:00
parent bb953e6857
commit 581ae693fc

View file

@ -69,7 +69,10 @@ class Podcast(BaseModel, TimestampMixin):
file_location = Column(Text, nullable=True)
search_space_id = Column(
Integer, ForeignKey("searchspaces.id", ondelete="CASCADE"), nullable=False
"workspace_id",
Integer,
ForeignKey("searchspaces.id", ondelete="CASCADE"),
nullable=False,
)
search_space = relationship("SearchSpace", back_populates="podcasts")