Skip to content

chore(release): approve core migration 0034 (ad_daily_stats) for production - #646

Closed
hikariming wants to merge 1 commit into
mainfrom
chore/approve-migration-0034
Closed

hikariming wants to merge 1 commit into
mainfrom
chore/approve-migration-0034

Conversation

@hikariming

Copy link
Copy Markdown
Collaborator

Follow-up to #644. The production deploy only applies migrations listed in ops/feed-production-schema-release.json. 0034 wasn't listed, so step 12 skipped it: production D1 is still at 0033 and has no ad_daily_stats table. The new code is live, so every POST /api/sponsors/pulse write currently returns 500.

This adds the 0034_ad_daily_stats.sql name + sha256, following the 0029 approval in beb6f23, and bumps the expected core count to 24. node --test scripts/feed-production-release.test.mjs: 20 pass.

The migration is additive only: one new table, one index, one nullable column on sponsorships, and 7 UPDATEs setting advertiser_id.

🤖 Generated with Claude Code

…uction

Adds 0034_ad_daily_stats.sql (from #644) to the production schema
approval manifest so the production deploy applies it. Without it the
deploy skipped the migration and every /api/sponsors/pulse write 500s.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@AsperforMias

Copy link
Copy Markdown
Collaborator

Since 2026-11-07 ghfind is split into three repositories, and ops/ / scripts/ now live in the private server repository. I ported this change there with you as co-author (ghfind-server PR #2) and shipped it in ghfind-server v1.0.4 through the normal release pipeline.

Verified in production (read-only, 2026-11-08):

  • d1_migrations now ends at 0034_ad_daily_stats.sql
  • ad_daily_stats exists and all 7 sponsorships have advertiser_id
  • real POST /api/sponsors/pulse traffic is writing rows again (sponsor, job and static slots)

Thank you for the precise diagnosis! / 已移植到私有后端仓库并随 v1.0.4 上线,生产库已执行 0034,赞助位曝光数据恢复写入。感谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants