Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pgpm/export/src/export-graphql-meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ export const exportGraphQLMeta = async ({
queryAndParse('plans_module'),
queryAndParse('realtime_module'),
queryAndParse('session_secrets_module'),
queryAndParse('org_secrets_module'),
queryAndParse('webauthn_auth_module'),
queryAndParse('webauthn_credentials_module')
]);
Expand Down
1 change: 1 addition & 0 deletions pgpm/export/src/export-meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ export const exportMeta = async ({ opts, dbname, database_id }: ExportMetaParams
await queryAndParse('plans_module', `SELECT * FROM metaschema_modules_public.plans_module WHERE database_id = $1 ORDER BY id`);
await queryAndParse('realtime_module', `SELECT * FROM metaschema_modules_public.realtime_module WHERE database_id = $1 ORDER BY id`);
await queryAndParse('session_secrets_module', `SELECT * FROM metaschema_modules_public.session_secrets_module WHERE database_id = $1 ORDER BY id`);
await queryAndParse('org_secrets_module', `SELECT * FROM metaschema_modules_public.org_secrets_module WHERE database_id = $1 ORDER BY id`);
await queryAndParse('webauthn_auth_module', `SELECT * FROM metaschema_modules_public.webauthn_auth_module WHERE database_id = $1 ORDER BY id`);
await queryAndParse('webauthn_credentials_module', `SELECT * FROM metaschema_modules_public.webauthn_credentials_module WHERE database_id = $1 ORDER BY id`);

Expand Down
12 changes: 12 additions & 0 deletions pgpm/export/src/export-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ export const META_TABLE_ORDER = [
'plans_module',
'realtime_module',
'session_secrets_module',
'org_secrets_module',
'webauthn_auth_module',
'webauthn_credentials_module'
] as const;
Expand Down Expand Up @@ -1409,6 +1410,17 @@ export const META_TABLE_CONFIG: Record<string, TableConfig> = {
sessions_table_id: 'uuid'
}
},
org_secrets_module: {
schema: 'metaschema_modules_public',
table: 'org_secrets_module',
fields: {
id: 'uuid',
database_id: 'uuid',
schema_id: 'uuid',
table_id: 'uuid',
table_name: 'text'
}
},
webauthn_auth_module: {
schema: 'metaschema_modules_public',
table: 'webauthn_auth_module',
Expand Down
Loading