From 467bcd4f7b54207f685b65cf10f584db6b86b65c Mon Sep 17 00:00:00 2001 From: CREDO23 Date: Wed, 10 Jun 2026 18:44:12 +0200 Subject: [PATCH] feat(podcasts): add zero publication migration --- .../versions/157_publish_podcasts_to_zero.py | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 surfsense_backend/alembic/versions/157_publish_podcasts_to_zero.py diff --git a/surfsense_backend/alembic/versions/157_publish_podcasts_to_zero.py b/surfsense_backend/alembic/versions/157_publish_podcasts_to_zero.py new file mode 100644 index 000000000..d495796fb --- /dev/null +++ b/surfsense_backend/alembic/versions/157_publish_podcasts_to_zero.py @@ -0,0 +1,27 @@ +"""publish podcasts to zero_publication + +Reconciles ``zero_publication`` after migration 156 added the lifecycle columns, +so the frontend observes podcast status and the reviewable brief by push. + +Revision ID: 157 +Revises: 156 +""" + +from collections.abc import Sequence + +from alembic import op + +from app.zero_publication import apply_publication + +revision: str = "157" +down_revision: str | None = "156" +branch_labels: str | Sequence[str] | None = None +depends_on: str | Sequence[str] | None = None + + +def upgrade() -> None: + apply_publication(op.get_bind()) + + +def downgrade() -> None: + """No-op. Historical publication shapes are immutable."""