Skip to content

chore(db): sync schema dump with merged migrations - #997

Merged
rickyrombo merged 2 commits into
mainfrom
mjp-sync-test-schema
Jul 30, 2026
Merged

chore(db): sync schema dump with merged migrations#997
rickyrombo merged 2 commits into
mainfrom
mjp-sync-test-schema

Conversation

@rickyrombo

Copy link
Copy Markdown
Contributor

Regenerates sql/01_schema.sql and sql/03_migration_tracker.sql via make test-schema.

The committed schema dump had drifted behind several already-merged migrations (~0218–0228) that were never dumped. Since the Go test suite builds its Postgres template from sql/01_schema.sql (not by running migrations), this brings the test-template schema back in sync with the migrations on main.

No functional change — dump/tracker regeneration only.

🤖 Generated with Claude Code

Regenerate sql/01_schema.sql and sql/03_migration_tracker.sql via
`make test-schema`. The committed dump had drifted behind several
already-merged migrations (~0218-0228); this brings the test-template
schema back in sync. No functional change.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Regenerating the schema dump activates the delta-based social-aggregate
triggers introduced in #898 (on_save/on_follow/on_repost now fire on
INSERT OR UPDATE and adjust counts by a delta instead of recomputing).
The shared aggregate_user fixture seeded user 1's track_save_count to 20,
which the old recompute trigger overwrote but the delta trigger instead
treats as a baseline (20 + 3 seeded saves = 23), breaking
TestGetUsersAccount. Seed the pre-save baseline of 0 so the trigger
builds the intended count of 3.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@rickyrombo
rickyrombo merged commit 6dfda1c into main Jul 30, 2026
2 checks passed
@rickyrombo
rickyrombo deleted the mjp-sync-test-schema branch July 30, 2026 05:43
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.

1 participant