fix(young): grant life_ustc_runtime SELECT on YoungEvent - #1004
Merged
Conversation
The table-creation migration granted nothing, so every runtime query failed with 42501 (surfaced as P2039 through the driver adapter) and /catalog/young-events 500s in production. Mirrors the WeatherObservation grant pattern from ba68c8f.
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
life-ustc | dca6445 | Sep 02 2026, 06:56 AM |
Contributor
|
E2E HTML report is ready: https://life-ustc.github.io/e2e-snapshot-artifacts/reports/33601041130/index.html |
github-actions Bot
pushed a commit
that referenced
this pull request
Sep 2, 2026
## [1.103.1](v1.103.0...v1.103.1) (2026-09-02) ### Bug Fixes * **young:** grant life_ustc_runtime SELECT on YoungEvent ([#1004](#1004)) ([358eff4](358eff4))
Contributor
|
🎉 This PR is included in version 1.103.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
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
/catalog/young-eventsand/api/catalog/young-events500 in production: the20260901210000_add_young_eventsmigration created the table but granted nothing, so the unprivilegedlife_ustc_runtimerole gets Postgres 42501 (surfaced as Prisma P2039 via the driver adapter) on every query.Same class of issue as #976 (WeatherObservation); same fix shape — a conditional grant migration that no-ops where the role isn't provisioned.
Verification
db:migrate:deploy(NOTICE path without the role).PrismaClientKnownRequestError P2039on/catalog/young-events(wrangler tail); migration itself deployed fine per the DB Migrate Deploy run on the merge commit.