Fix blog: add page_configs migration, fix stale cart reference in ghost_sync
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 43s

- Add 0003_add_page_configs.py migration to create table in db_blog
- Fix ghost_sync.py: fetch_data("cart", "page-config-ensure") → "blog"

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-27 09:25:19 +00:00
parent fe34ea8e5b
commit 96b02d93df
2 changed files with 46 additions and 2 deletions

View File

@@ -248,10 +248,10 @@ async def _upsert_post(sess: AsyncSession, gp: Dict[str, Any], author_map: Dict[
finally:
sess.autoflush = old_autoflush
# Auto-create PageConfig for pages (lives in db_cart, accessed via internal API)
# Auto-create PageConfig for pages (blog now owns this table)
if obj.is_page:
await fetch_data(
"cart", "page-config-ensure",
"blog", "page-config-ensure",
params={"container_type": "page", "container_id": obj.id},
required=False,
)