Repository navigation
feat(database): finalize operational schemas - #25
Merged
Merged
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
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.
Summary
cwl_season_statisticssurface in forward migration 016 while retaining canonical CWL and war storagelegend_i,top_1000, andtop_200user_saved_basesrows and nullable textwar|legendlabelsbases.downloadsas an immutable Discord-user-to-ISO-timestamp JSON object, migrate existing timestamps, dropbase_downloaders, and count unique JSON keysValidation
goose -dir database/timescale validatego test ./...fromdatabase/bash ../scripts/with-test-timescale.sh --profile retained-api -- env GOCACHE=/tmp/clashking-schemas-go-cache go test ./schema ./migrations -count=1bash ../scripts/with-test-timescale.sh --profile baseline-013 -- env GOCACHE=/tmp/clashking-schemas-go-cache go test ./schema -run '^TestArmyCodeFamilyCompatibilityMigration$' -count=1 -vbash ../scripts/with-test-timescale.sh --profile baseline-018 -- env GOCACHE=/tmp/clashking-schemas-go-cache go test ./schema -run '^TestPersonalBaseStorageMigration$' -count=1 -vnode --test scripts/with-test-timescale.test.mjsenv GOCACHE=/tmp/clashking-schemas-go-cache bash scripts/validate-repository.shactionlint .github/workflows/schema-upgrade.ymlgit diff --checkRollout boundary
This PR does not deploy or apply migrations. Migration 017 and migration 019 are irreversible and require coordinated final Tracking/API/Bot/App consumers before production execution. Migration 019 must be present before the API/App unlimited personal-base contract ships. Aggregate rows are rebuilt from retained raw attacks because the prior tables do not contain the final cohort/day semantics.
Migration 019 SQL SHA-256:
892a3639391311c0d34348be5679fdb1f7a70ce2cbf82fc3181d3a35e4aff11d.