Repository navigation
docs: a dated schema file is applied by rapidctl db apply, as postgres - #684
Merged
Merged
Conversation
The command the README named, rapid_systems' cloudformation/apply-dated-sql.sh, was deleted by its refactor; rapid_systems PR 593 restores it as `rapidctl db apply ENV FILE`, proved on SMDC with 2026-11-17-survey-programs.sql (INSERT 0 0). postgres stays the schema's owner (Ben, 2026-12-04). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
database/README.mdnames the command that applies a dated schema file. The one it named, rapid_systems'cloudformation/apply-dated-sql.sh, was deleted by that repository's refactor; IPAC-SW/rapid_systems PR 593 restores it asrapidctl db apply ENV FILE, which pipes the file topsql -X -v ON_ERROR_STOP=1aspostgreson the database host and exits 0 only when psql ran the whole file. The paragraph also says thatpostgresowns the schema and its default privileges give the grants (Ben, 2026-12-04:postgresstays the owner). Card db-login-cleanup, task 1, first attempt.Files:
database/README.md.Measurements
rapidctl db apply rapid 2026-11-17-survey-programs.sqlon SMDC, 2026-12-04 04:09 UTCapplied_as postgres,INSERT 0 0,COMMIT, exit 0; all 28 programs present before,surveys44 rows and its tuple counters unchanged afterRaw evidence:
s3://roman-rapid-scratch/rapidpipe/foundation/qa/db-login-cleanup/t1/.Divergences
The runbook's history rows that cite
apply-dated-sql.share left as they are: they record what ran then.Improvements seen
None.
Session notes
None.
Next / left
Merged after rapid_systems PR 593, so the command it names exists on rapid_systems
main.🤖 Generated with Claude Code