feat: rename schemas collections_public -> metaschema_public, meta_public -> services_public #549
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.
feat: rename schemas collections_public -> metaschema_public, meta_public -> services_public
Summary
Updates the
@pgpmjs/coreand@pgpmjs/clipackages to use the new schema naming convention:collections_public→metaschema_publicmeta_public→services_publicThis change is required for compatibility with the schema rename in constructive-io/constructive-db (PR #210).
Files changed:
pgpm/core/src/export/export-meta.ts- Updated config and query stringspgpm/core/src/export/export-migrations.ts- Updated query strings and commentspgpm/cli/src/commands/export.ts- Updated query stringspgpm/core/__tests__/export/export-flow.test.ts- Updated test fixturespgpm/core/__tests__/export/export-meta.test.ts- Updated test assertionsReview & Testing Checklist for Human
grep -r "collections_public\|meta_public" pgpm/to verify no schema references were missed in source filespgpm exportagainst a database with the new schema names (metaschema_public,services_public) to verify queries work correctlyRecommended test plan:
pgpm exportand verify it successfully queries the renamed schemasNotes
This is a breaking change - the pgpm tooling will no longer work with databases using the old schema names (
collections_public,meta_public).Link to Devin run: https://app.devin.ai/sessions/6b4b0a2f64084dfaa4a82c0cef42bc43
Requested by: Dan Lynch (@pyramation)