@pgpmjs/core 4.15.0 → 4.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/export/export-meta.js +6 -30
- package/export/export-meta.js +6 -30
- package/package.json +2 -2
|
@@ -841,44 +841,19 @@ const config = {
|
|
|
841
841
|
fields: 'uuid[]'
|
|
842
842
|
}
|
|
843
843
|
},
|
|
844
|
-
|
|
844
|
+
table_template_module: {
|
|
845
845
|
schema: 'metaschema_modules_public',
|
|
846
|
-
table: '
|
|
847
|
-
fields: {
|
|
848
|
-
id: 'uuid',
|
|
849
|
-
database_id: 'uuid',
|
|
850
|
-
schema_id: 'uuid',
|
|
851
|
-
private_schema_id: 'uuid',
|
|
852
|
-
table_id: 'uuid',
|
|
853
|
-
table_name: 'text',
|
|
854
|
-
users_table_id: 'uuid'
|
|
855
|
-
}
|
|
856
|
-
},
|
|
857
|
-
user_settings_module: {
|
|
858
|
-
schema: 'metaschema_modules_public',
|
|
859
|
-
table: 'user_settings_module',
|
|
860
|
-
fields: {
|
|
861
|
-
id: 'uuid',
|
|
862
|
-
database_id: 'uuid',
|
|
863
|
-
schema_id: 'uuid',
|
|
864
|
-
private_schema_id: 'uuid',
|
|
865
|
-
table_id: 'uuid',
|
|
866
|
-
table_name: 'text',
|
|
867
|
-
users_table_id: 'uuid'
|
|
868
|
-
}
|
|
869
|
-
},
|
|
870
|
-
organization_settings_module: {
|
|
871
|
-
schema: 'metaschema_modules_public',
|
|
872
|
-
table: 'organization_settings_module',
|
|
846
|
+
table: 'table_template_module',
|
|
873
847
|
fields: {
|
|
874
848
|
id: 'uuid',
|
|
875
849
|
database_id: 'uuid',
|
|
876
850
|
schema_id: 'uuid',
|
|
877
851
|
private_schema_id: 'uuid',
|
|
878
852
|
table_id: 'uuid',
|
|
853
|
+
owner_table_id: 'uuid',
|
|
879
854
|
table_name: 'text',
|
|
880
|
-
|
|
881
|
-
|
|
855
|
+
node_type: 'text',
|
|
856
|
+
data: 'jsonb'
|
|
882
857
|
}
|
|
883
858
|
},
|
|
884
859
|
uuid_module: {
|
|
@@ -1031,6 +1006,7 @@ export const exportMeta = async ({ opts, dbname, database_id }) => {
|
|
|
1031
1006
|
await queryAndParse('crypto_addresses_module', `SELECT * FROM metaschema_modules_public.crypto_addresses_module WHERE database_id = $1`);
|
|
1032
1007
|
await queryAndParse('crypto_auth_module', `SELECT * FROM metaschema_modules_public.crypto_auth_module WHERE database_id = $1`);
|
|
1033
1008
|
await queryAndParse('field_module', `SELECT * FROM metaschema_modules_public.field_module WHERE database_id = $1`);
|
|
1009
|
+
await queryAndParse('table_template_module', `SELECT * FROM metaschema_modules_public.table_template_module WHERE database_id = $1`);
|
|
1034
1010
|
await queryAndParse('uuid_module', `SELECT * FROM metaschema_modules_public.uuid_module WHERE database_id = $1`);
|
|
1035
1011
|
await queryAndParse('default_ids_module', `SELECT * FROM metaschema_modules_public.default_ids_module WHERE database_id = $1`);
|
|
1036
1012
|
await queryAndParse('denormalized_table_field', `SELECT * FROM metaschema_modules_public.denormalized_table_field WHERE database_id = $1`);
|
package/export/export-meta.js
CHANGED
|
@@ -844,44 +844,19 @@ const config = {
|
|
|
844
844
|
fields: 'uuid[]'
|
|
845
845
|
}
|
|
846
846
|
},
|
|
847
|
-
|
|
847
|
+
table_template_module: {
|
|
848
848
|
schema: 'metaschema_modules_public',
|
|
849
|
-
table: '
|
|
850
|
-
fields: {
|
|
851
|
-
id: 'uuid',
|
|
852
|
-
database_id: 'uuid',
|
|
853
|
-
schema_id: 'uuid',
|
|
854
|
-
private_schema_id: 'uuid',
|
|
855
|
-
table_id: 'uuid',
|
|
856
|
-
table_name: 'text',
|
|
857
|
-
users_table_id: 'uuid'
|
|
858
|
-
}
|
|
859
|
-
},
|
|
860
|
-
user_settings_module: {
|
|
861
|
-
schema: 'metaschema_modules_public',
|
|
862
|
-
table: 'user_settings_module',
|
|
863
|
-
fields: {
|
|
864
|
-
id: 'uuid',
|
|
865
|
-
database_id: 'uuid',
|
|
866
|
-
schema_id: 'uuid',
|
|
867
|
-
private_schema_id: 'uuid',
|
|
868
|
-
table_id: 'uuid',
|
|
869
|
-
table_name: 'text',
|
|
870
|
-
users_table_id: 'uuid'
|
|
871
|
-
}
|
|
872
|
-
},
|
|
873
|
-
organization_settings_module: {
|
|
874
|
-
schema: 'metaschema_modules_public',
|
|
875
|
-
table: 'organization_settings_module',
|
|
849
|
+
table: 'table_template_module',
|
|
876
850
|
fields: {
|
|
877
851
|
id: 'uuid',
|
|
878
852
|
database_id: 'uuid',
|
|
879
853
|
schema_id: 'uuid',
|
|
880
854
|
private_schema_id: 'uuid',
|
|
881
855
|
table_id: 'uuid',
|
|
856
|
+
owner_table_id: 'uuid',
|
|
882
857
|
table_name: 'text',
|
|
883
|
-
|
|
884
|
-
|
|
858
|
+
node_type: 'text',
|
|
859
|
+
data: 'jsonb'
|
|
885
860
|
}
|
|
886
861
|
},
|
|
887
862
|
uuid_module: {
|
|
@@ -1034,6 +1009,7 @@ const exportMeta = async ({ opts, dbname, database_id }) => {
|
|
|
1034
1009
|
await queryAndParse('crypto_addresses_module', `SELECT * FROM metaschema_modules_public.crypto_addresses_module WHERE database_id = $1`);
|
|
1035
1010
|
await queryAndParse('crypto_auth_module', `SELECT * FROM metaschema_modules_public.crypto_auth_module WHERE database_id = $1`);
|
|
1036
1011
|
await queryAndParse('field_module', `SELECT * FROM metaschema_modules_public.field_module WHERE database_id = $1`);
|
|
1012
|
+
await queryAndParse('table_template_module', `SELECT * FROM metaschema_modules_public.table_template_module WHERE database_id = $1`);
|
|
1037
1013
|
await queryAndParse('uuid_module', `SELECT * FROM metaschema_modules_public.uuid_module WHERE database_id = $1`);
|
|
1038
1014
|
await queryAndParse('default_ids_module', `SELECT * FROM metaschema_modules_public.default_ids_module WHERE database_id = $1`);
|
|
1039
1015
|
await queryAndParse('denormalized_table_field', `SELECT * FROM metaschema_modules_public.denormalized_table_field WHERE database_id = $1`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pgpmjs/core",
|
|
3
|
-
"version": "4.15.
|
|
3
|
+
"version": "4.15.1",
|
|
4
4
|
"author": "Constructive <developers@constructive.io>",
|
|
5
5
|
"description": "PGPM Package and Migration Tools",
|
|
6
6
|
"main": "index.js",
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"pgsql-parser": "^17.9.11",
|
|
65
65
|
"yanse": "^0.1.11"
|
|
66
66
|
},
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "b9719cd48487af70e6e065510197c9d2d6b331b6"
|
|
68
68
|
}
|