Repository navigation
Add the Ahrefs Domain Rating columns (migrations only) - #132
Merged
Merged
Conversation
Migrations-only release ahead of pull request #131, so its production build check can read the new columns. Nullable domain_rating and domain_rating_checked_on, a named NOT VALID range check validated in a second transaction, idempotent with type guards. No code reads the columns until #131 merges. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
RaviTejaKNTS
temporarily deployed
to
production
November 14, 2026 10:50 — with
GitHub Actions
Inactive
This branch was previously deployed
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.
What
The database part of pull request #131, released first, as
stack127_docs/production-deployment.mddescribes for schema changes.PR CI builds against the production database. #131's build failed with
column p.domain_rating does not exist, because migrations only apply at release.supabase/migrations/20261114130000_ad_network_domain_rating.sql:domain_ratinganddomain_rating_checked_ontoad_network_publishers.NOT VALIDrange check (0 to 100), then validates it in a second transaction, so the 125,000-row table is not held under an exclusive lock while it is checked.lock_timeout10 s. Idempotent, with type guards.Nothing reads the columns until #131 merges, so this release only adds the columns.
Review
Reviewed as part of #131 in three rounds. The migration's locking and idempotency findings were fixed and confirmed. The reviewer checked that Supabase CLI 2.122.1 runs the authored transaction boundaries without an outer transaction.
Checks
Applied twice in development; the second run was a no-op and all rows were preserved.
🤖 Generated with Claude Code