Skip to content

Commit 9822e80

Browse files
authored
Merge pull request #607 from constructive-io/devin/1768351474-export-flow-updates
feat: update export flow for new metaschema tables and columns
2 parents e78abbe + 7e5387a commit 9822e80

2 files changed

Lines changed: 59 additions & 1 deletion

File tree

pgpm/core/src/export/export-meta.ts

Lines changed: 55 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ const config: Record<string, TableConfig> = {
556556
entity_ids_function: 'text'
557557
}
558558
},
559-
permissions_module: {
559+
permissions_module:{
560560
schema: 'metaschema_modules_public',
561561
table: 'permissions_module',
562562
fields: {
@@ -846,11 +846,65 @@ const config: Record<string, TableConfig> = {
846846
private_schema_id: 'uuid',
847847
table_id: 'uuid',
848848
field_id: 'uuid',
849+
node_type: 'text',
849850
data: 'jsonb',
850851
triggers: 'text[]',
851852
functions: 'text[]'
852853
}
853854
},
855+
table_module: {
856+
schema: 'metaschema_modules_public',
857+
table: 'table_module',
858+
fields: {
859+
id: 'uuid',
860+
database_id: 'uuid',
861+
private_schema_id: 'uuid',
862+
table_id: 'uuid',
863+
node_type: 'text',
864+
data: 'jsonb',
865+
fields: 'uuid[]'
866+
}
867+
},
868+
user_profiles_module: {
869+
schema: 'metaschema_modules_public',
870+
table: 'user_profiles_module',
871+
fields: {
872+
id: 'uuid',
873+
database_id: 'uuid',
874+
schema_id: 'uuid',
875+
private_schema_id: 'uuid',
876+
table_id: 'uuid',
877+
table_name: 'text',
878+
users_table_id: 'uuid'
879+
}
880+
},
881+
user_settings_module: {
882+
schema: 'metaschema_modules_public',
883+
table: 'user_settings_module',
884+
fields: {
885+
id: 'uuid',
886+
database_id: 'uuid',
887+
schema_id: 'uuid',
888+
private_schema_id: 'uuid',
889+
table_id: 'uuid',
890+
table_name: 'text',
891+
users_table_id: 'uuid'
892+
}
893+
},
894+
organization_settings_module: {
895+
schema: 'metaschema_modules_public',
896+
table: 'organization_settings_module',
897+
fields: {
898+
id: 'uuid',
899+
database_id: 'uuid',
900+
schema_id: 'uuid',
901+
private_schema_id: 'uuid',
902+
table_id: 'uuid',
903+
table_name: 'text',
904+
entity_table_id: 'uuid',
905+
membership_type: 'int'
906+
}
907+
},
854908
uuid_module: {
855909
schema: 'metaschema_modules_public',
856910
table: 'uuid_module',

pgpm/core/src/export/export-migrations.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,10 @@ SET session_replication_role TO DEFAULT;`;
409409
'crypto_addresses_module',
410410
'crypto_auth_module',
411411
'field_module',
412+
'table_module',
413+
'user_profiles_module',
414+
'user_settings_module',
415+
'organization_settings_module',
412416
'uuid_module',
413417
'default_ids_module',
414418
'denormalized_table_field'

0 commit comments

Comments
 (0)