mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-06 22:12:12 +02:00
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:
parent
bb953e6857
commit
581ae693fc
1 changed files with 4 additions and 1 deletions
|
|
@ -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")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue