feat: add view tables to metaschema-schema #37
Merged
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: add view tables to metaschema-schema
Summary
Upstream view system tables from constructive-db PR #421 to the shared pgpm-modules package. This adds four new tables to support the views infrastructure:
The
view.table_idis intentionally nullable to support ViewComposite which doesn't have a primary table reference.Updates since last revision
Updated metaschema-modules snapshot tests to reflect increased constraint counts. The new view tables have foreign keys to
metaschema_public.database,schema, andtable, which increases the FK constraint counts in the cross-schema queries used by the tests.Review & Testing Checklist for Human
Notes
This is a schema-only package. The tables have been tested in constructive-db PR #421 which uses this package as a dependency.
Requested by: Dan Lynch (@pyramation)
Link to Devin run: https://app.devin.ai/sessions/e705631c4cfd49e1bd051bf80c7f84a3