@pgpmjs/core 6.2.0 → 6.3.0

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.
@@ -833,6 +833,28 @@ const config = {
833
833
  fields: 'uuid[]'
834
834
  }
835
835
  },
836
+ secure_table_provision: {
837
+ schema: 'metaschema_modules_public',
838
+ table: 'secure_table_provision',
839
+ fields: {
840
+ id: 'uuid',
841
+ database_id: 'uuid',
842
+ schema_id: 'uuid',
843
+ table_id: 'uuid',
844
+ table_name: 'text',
845
+ node_type: 'text',
846
+ use_rls: 'boolean',
847
+ node_data: 'jsonb',
848
+ grant_roles: 'text[]',
849
+ grant_privileges: 'jsonb',
850
+ policy_type: 'text',
851
+ policy_privileges: 'text[]',
852
+ policy_role: 'text',
853
+ policy_permissive: 'boolean',
854
+ policy_data: 'jsonb',
855
+ out_fields: 'uuid[]'
856
+ }
857
+ },
836
858
  table_template_module: {
837
859
  schema: 'metaschema_modules_public',
838
860
  table: 'table_template_module',
@@ -999,6 +1021,7 @@ export const exportMeta = async ({ opts, dbname, database_id }) => {
999
1021
  await queryAndParse('crypto_auth_module', `SELECT * FROM metaschema_modules_public.crypto_auth_module WHERE database_id = $1`);
1000
1022
  await queryAndParse('field_module', `SELECT * FROM metaschema_modules_public.field_module WHERE database_id = $1`);
1001
1023
  await queryAndParse('table_template_module', `SELECT * FROM metaschema_modules_public.table_template_module WHERE database_id = $1`);
1024
+ await queryAndParse('secure_table_provision', `SELECT * FROM metaschema_modules_public.secure_table_provision WHERE database_id = $1`);
1002
1025
  await queryAndParse('uuid_module', `SELECT * FROM metaschema_modules_public.uuid_module WHERE database_id = $1`);
1003
1026
  await queryAndParse('default_ids_module', `SELECT * FROM metaschema_modules_public.default_ids_module WHERE database_id = $1`);
1004
1027
  await queryAndParse('denormalized_table_field', `SELECT * FROM metaschema_modules_public.denormalized_table_field WHERE database_id = $1`);
@@ -259,6 +259,7 @@ SET session_replication_role TO DEFAULT;`;
259
259
  'crypto_auth_module',
260
260
  'field_module',
261
261
  'table_module',
262
+ 'secure_table_provision',
262
263
  'user_profiles_module',
263
264
  'user_settings_module',
264
265
  'organization_settings_module',
@@ -836,6 +836,28 @@ const config = {
836
836
  fields: 'uuid[]'
837
837
  }
838
838
  },
839
+ secure_table_provision: {
840
+ schema: 'metaschema_modules_public',
841
+ table: 'secure_table_provision',
842
+ fields: {
843
+ id: 'uuid',
844
+ database_id: 'uuid',
845
+ schema_id: 'uuid',
846
+ table_id: 'uuid',
847
+ table_name: 'text',
848
+ node_type: 'text',
849
+ use_rls: 'boolean',
850
+ node_data: 'jsonb',
851
+ grant_roles: 'text[]',
852
+ grant_privileges: 'jsonb',
853
+ policy_type: 'text',
854
+ policy_privileges: 'text[]',
855
+ policy_role: 'text',
856
+ policy_permissive: 'boolean',
857
+ policy_data: 'jsonb',
858
+ out_fields: 'uuid[]'
859
+ }
860
+ },
839
861
  table_template_module: {
840
862
  schema: 'metaschema_modules_public',
841
863
  table: 'table_template_module',
@@ -1002,6 +1024,7 @@ const exportMeta = async ({ opts, dbname, database_id }) => {
1002
1024
  await queryAndParse('crypto_auth_module', `SELECT * FROM metaschema_modules_public.crypto_auth_module WHERE database_id = $1`);
1003
1025
  await queryAndParse('field_module', `SELECT * FROM metaschema_modules_public.field_module WHERE database_id = $1`);
1004
1026
  await queryAndParse('table_template_module', `SELECT * FROM metaschema_modules_public.table_template_module WHERE database_id = $1`);
1027
+ await queryAndParse('secure_table_provision', `SELECT * FROM metaschema_modules_public.secure_table_provision WHERE database_id = $1`);
1005
1028
  await queryAndParse('uuid_module', `SELECT * FROM metaschema_modules_public.uuid_module WHERE database_id = $1`);
1006
1029
  await queryAndParse('default_ids_module', `SELECT * FROM metaschema_modules_public.default_ids_module WHERE database_id = $1`);
1007
1030
  await queryAndParse('denormalized_table_field', `SELECT * FROM metaschema_modules_public.denormalized_table_field WHERE database_id = $1`);
@@ -265,6 +265,7 @@ SET session_replication_role TO DEFAULT;`;
265
265
  'crypto_auth_module',
266
266
  'field_module',
267
267
  'table_module',
268
+ 'secure_table_provision',
268
269
  'user_profiles_module',
269
270
  'user_settings_module',
270
271
  'organization_settings_module',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pgpmjs/core",
3
- "version": "6.2.0",
3
+ "version": "6.3.0",
4
4
  "author": "Constructive <developers@constructive.io>",
5
5
  "description": "PGPM Package and Migration Tools",
6
6
  "main": "index.js",
@@ -65,5 +65,5 @@
65
65
  "pgsql-parser": "^17.9.11",
66
66
  "yanse": "^0.2.0"
67
67
  },
68
- "gitHead": "b758178b808ce0bf451e86c0bd7e92079155db7c"
68
+ "gitHead": "594881150b097a4575f5dcdccf46207351d2a080"
69
69
  }