mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-26 23:51:14 +02:00
feat(zero): publish thread title, visibility, created_by columns
This commit is contained in:
parent
0ca696f3fc
commit
2c4ebaeb7f
2 changed files with 26 additions and 0 deletions
|
|
@ -0,0 +1,23 @@
|
||||||
|
"""publish thread metadata to zero_publication
|
||||||
|
|
||||||
|
Revision ID: 175
|
||||||
|
Revises: 174
|
||||||
|
"""
|
||||||
|
|
||||||
|
from collections.abc import Sequence
|
||||||
|
|
||||||
|
from alembic import op
|
||||||
|
from app.zero_publication import apply_publication
|
||||||
|
|
||||||
|
revision: str = "175"
|
||||||
|
down_revision: str | None = "174"
|
||||||
|
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."""
|
||||||
|
|
@ -60,6 +60,9 @@ AUTOMATION_COLS = [
|
||||||
NEW_CHAT_THREAD_COLS = [
|
NEW_CHAT_THREAD_COLS = [
|
||||||
"id",
|
"id",
|
||||||
"workspace_id",
|
"workspace_id",
|
||||||
|
"title",
|
||||||
|
"visibility",
|
||||||
|
"created_by_id",
|
||||||
]
|
]
|
||||||
|
|
||||||
# Enough to drive the lifecycle UI by push: status, the reviewable brief, and
|
# Enough to drive the lifecycle UI by push: status, the reviewable brief, and
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue