chore(db): sync schema dump with merged migrations - #997
Open
rickyrombo wants to merge 2 commits into
Open
Conversation
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 <[email protected]>
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 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Regenerates
sql/01_schema.sqlandsql/03_migration_tracker.sqlviamake 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 onmain.No functional change — dump/tracker regeneration only.
🤖 Generated with Claude Code