@pgpmjs/core 4.14.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.
|
@@ -149,7 +149,7 @@ const config = {
|
|
|
149
149
|
privilege: 'text',
|
|
150
150
|
permissive: 'boolean',
|
|
151
151
|
disabled: 'boolean',
|
|
152
|
-
|
|
152
|
+
policy_type: 'text',
|
|
153
153
|
data: 'jsonb'
|
|
154
154
|
}
|
|
155
155
|
},
|
|
@@ -822,11 +822,40 @@ const config = {
|
|
|
822
822
|
private_schema_id: 'uuid',
|
|
823
823
|
table_id: 'uuid',
|
|
824
824
|
field_id: 'uuid',
|
|
825
|
+
node_type: 'text',
|
|
825
826
|
data: 'jsonb',
|
|
826
827
|
triggers: 'text[]',
|
|
827
828
|
functions: 'text[]'
|
|
828
829
|
}
|
|
829
830
|
},
|
|
831
|
+
table_module: {
|
|
832
|
+
schema: 'metaschema_modules_public',
|
|
833
|
+
table: 'table_module',
|
|
834
|
+
fields: {
|
|
835
|
+
id: 'uuid',
|
|
836
|
+
database_id: 'uuid',
|
|
837
|
+
private_schema_id: 'uuid',
|
|
838
|
+
table_id: 'uuid',
|
|
839
|
+
node_type: 'text',
|
|
840
|
+
data: 'jsonb',
|
|
841
|
+
fields: 'uuid[]'
|
|
842
|
+
}
|
|
843
|
+
},
|
|
844
|
+
table_template_module: {
|
|
845
|
+
schema: 'metaschema_modules_public',
|
|
846
|
+
table: 'table_template_module',
|
|
847
|
+
fields: {
|
|
848
|
+
id: 'uuid',
|
|
849
|
+
database_id: 'uuid',
|
|
850
|
+
schema_id: 'uuid',
|
|
851
|
+
private_schema_id: 'uuid',
|
|
852
|
+
table_id: 'uuid',
|
|
853
|
+
owner_table_id: 'uuid',
|
|
854
|
+
table_name: 'text',
|
|
855
|
+
node_type: 'text',
|
|
856
|
+
data: 'jsonb'
|
|
857
|
+
}
|
|
858
|
+
},
|
|
830
859
|
uuid_module: {
|
|
831
860
|
schema: 'metaschema_modules_public',
|
|
832
861
|
table: 'uuid_module',
|
|
@@ -977,6 +1006,7 @@ export const exportMeta = async ({ opts, dbname, database_id }) => {
|
|
|
977
1006
|
await queryAndParse('crypto_addresses_module', `SELECT * FROM metaschema_modules_public.crypto_addresses_module WHERE database_id = $1`);
|
|
978
1007
|
await queryAndParse('crypto_auth_module', `SELECT * FROM metaschema_modules_public.crypto_auth_module WHERE database_id = $1`);
|
|
979
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`);
|
|
980
1010
|
await queryAndParse('uuid_module', `SELECT * FROM metaschema_modules_public.uuid_module WHERE database_id = $1`);
|
|
981
1011
|
await queryAndParse('default_ids_module', `SELECT * FROM metaschema_modules_public.default_ids_module WHERE database_id = $1`);
|
|
982
1012
|
await queryAndParse('denormalized_table_field', `SELECT * FROM metaschema_modules_public.denormalized_table_field WHERE database_id = $1`);
|
|
@@ -260,6 +260,10 @@ SET session_replication_role TO DEFAULT;`;
|
|
|
260
260
|
'crypto_addresses_module',
|
|
261
261
|
'crypto_auth_module',
|
|
262
262
|
'field_module',
|
|
263
|
+
'table_module',
|
|
264
|
+
'user_profiles_module',
|
|
265
|
+
'user_settings_module',
|
|
266
|
+
'organization_settings_module',
|
|
263
267
|
'uuid_module',
|
|
264
268
|
'default_ids_module',
|
|
265
269
|
'denormalized_table_field'
|
package/export/export-meta.js
CHANGED
|
@@ -152,7 +152,7 @@ const config = {
|
|
|
152
152
|
privilege: 'text',
|
|
153
153
|
permissive: 'boolean',
|
|
154
154
|
disabled: 'boolean',
|
|
155
|
-
|
|
155
|
+
policy_type: 'text',
|
|
156
156
|
data: 'jsonb'
|
|
157
157
|
}
|
|
158
158
|
},
|
|
@@ -825,11 +825,40 @@ const config = {
|
|
|
825
825
|
private_schema_id: 'uuid',
|
|
826
826
|
table_id: 'uuid',
|
|
827
827
|
field_id: 'uuid',
|
|
828
|
+
node_type: 'text',
|
|
828
829
|
data: 'jsonb',
|
|
829
830
|
triggers: 'text[]',
|
|
830
831
|
functions: 'text[]'
|
|
831
832
|
}
|
|
832
833
|
},
|
|
834
|
+
table_module: {
|
|
835
|
+
schema: 'metaschema_modules_public',
|
|
836
|
+
table: 'table_module',
|
|
837
|
+
fields: {
|
|
838
|
+
id: 'uuid',
|
|
839
|
+
database_id: 'uuid',
|
|
840
|
+
private_schema_id: 'uuid',
|
|
841
|
+
table_id: 'uuid',
|
|
842
|
+
node_type: 'text',
|
|
843
|
+
data: 'jsonb',
|
|
844
|
+
fields: 'uuid[]'
|
|
845
|
+
}
|
|
846
|
+
},
|
|
847
|
+
table_template_module: {
|
|
848
|
+
schema: 'metaschema_modules_public',
|
|
849
|
+
table: 'table_template_module',
|
|
850
|
+
fields: {
|
|
851
|
+
id: 'uuid',
|
|
852
|
+
database_id: 'uuid',
|
|
853
|
+
schema_id: 'uuid',
|
|
854
|
+
private_schema_id: 'uuid',
|
|
855
|
+
table_id: 'uuid',
|
|
856
|
+
owner_table_id: 'uuid',
|
|
857
|
+
table_name: 'text',
|
|
858
|
+
node_type: 'text',
|
|
859
|
+
data: 'jsonb'
|
|
860
|
+
}
|
|
861
|
+
},
|
|
833
862
|
uuid_module: {
|
|
834
863
|
schema: 'metaschema_modules_public',
|
|
835
864
|
table: 'uuid_module',
|
|
@@ -980,6 +1009,7 @@ const exportMeta = async ({ opts, dbname, database_id }) => {
|
|
|
980
1009
|
await queryAndParse('crypto_addresses_module', `SELECT * FROM metaschema_modules_public.crypto_addresses_module WHERE database_id = $1`);
|
|
981
1010
|
await queryAndParse('crypto_auth_module', `SELECT * FROM metaschema_modules_public.crypto_auth_module WHERE database_id = $1`);
|
|
982
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`);
|
|
983
1013
|
await queryAndParse('uuid_module', `SELECT * FROM metaschema_modules_public.uuid_module WHERE database_id = $1`);
|
|
984
1014
|
await queryAndParse('default_ids_module', `SELECT * FROM metaschema_modules_public.default_ids_module WHERE database_id = $1`);
|
|
985
1015
|
await queryAndParse('denormalized_table_field', `SELECT * FROM metaschema_modules_public.denormalized_table_field WHERE database_id = $1`);
|
|
@@ -266,6 +266,10 @@ SET session_replication_role TO DEFAULT;`;
|
|
|
266
266
|
'crypto_addresses_module',
|
|
267
267
|
'crypto_auth_module',
|
|
268
268
|
'field_module',
|
|
269
|
+
'table_module',
|
|
270
|
+
'user_profiles_module',
|
|
271
|
+
'user_settings_module',
|
|
272
|
+
'organization_settings_module',
|
|
269
273
|
'uuid_module',
|
|
270
274
|
'default_ids_module',
|
|
271
275
|
'denormalized_table_field'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pgpmjs/core",
|
|
3
|
-
"version": "4.
|
|
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
|
}
|