Add table_template_module to export flow and remove old modules #608
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
Adds
table_template_moduleto the metadata export flow and removes the old module configs it replaces. This is a companion change to constructive-db PR #340 which introduced thetable_template_moduletable.Changes:
table_template_modulewith field definitions (id, database_id, schema_id, private_schema_id, table_id, owner_table_id, table_name, node_type, data)queryAndParsecall to export data frommetaschema_modules_public.table_template_moduleuser_profiles_module,user_settings_module, andorganization_settings_module(these tables no longer exist - replaced bytable_template_module)Review & Testing Checklist for Human
table_template_moduletable schema in constructive-dbuser_profiles_module,user_settings_module,organization_settings_module) have been removed from constructive-db before merging this PRtable_template_moduleto verify it exports correctlyRecommended test plan:
table_template_moduleINSERT statementsNotes
This follows the existing pattern for all other module exports in
export-meta.ts. The export will gracefully skip if the table doesn't exist (handled by the try/catch inqueryAndParse).Link to Devin run: https://app.devin.ai/sessions/f4b2066a3e3e434da15de84fba001ac3
Requested by: Dan Lynch (@pyramation)