Repository navigation
Better support env specific sql - #31
Merged
Merged
Conversation
…nvention testdb up/reset and migrate check/apply now accept --env to select which environment-tagged SQL files are in scope. testdb defaults to local_test; migrate's --env is optional and applies no filtering when omitted, matching today's behavior. Untagged files always apply.
…docs Adds unit tests for pgdevkit.envtag, migrate list_migration_files/pending_migrations env filtering, and integration tests for apply_schema's env-tagged file handling. Documents the <name>.<env>.sql convention in README, SKILL.md, and database-layout.md.
Resolves conflicts between the new <name>.<env>.sql environment-tag convention and main's --schema/--exclude-schema filtering (both landed concurrently and touched the same _iter_sql_files/apply_schema/ensure_testdb signatures). Also fixes a bug the code review caught: the .test_data.json seed-file lookup for an env-tagged table file (e.g. widget.prod.sql) now strips the env suffix before building the seed filename, so it correctly resolves to widget.test_data.json instead of widget.prod.test_data.json. Bumps version to 0.6.0 for the new environment-tag feature. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LKDneV8brSdCcZst6GaK9w
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.
No description provided.