@pgpmjs/core 6.3.0 → 6.3.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.
@@ -138,7 +138,7 @@ const config = {
138
138
  database_id: 'uuid',
139
139
  table_id: 'uuid',
140
140
  name: 'text',
141
- role_name: 'text',
141
+ grantee_name: 'text',
142
142
  privilege: 'text',
143
143
  permissive: 'boolean',
144
144
  disabled: 'boolean',
@@ -315,8 +315,22 @@ const config = {
315
315
  database_id: 'uuid',
316
316
  table_id: 'uuid',
317
317
  privilege: 'text',
318
- role_name: 'text',
319
- field_ids: 'uuid[]'
318
+ grantee_name: 'text',
319
+ field_ids: 'uuid[]',
320
+ is_grant: 'boolean'
321
+ }
322
+ },
323
+ default_privilege: {
324
+ schema: 'metaschema_public',
325
+ table: 'default_privilege',
326
+ fields: {
327
+ id: 'uuid',
328
+ database_id: 'uuid',
329
+ schema_id: 'uuid',
330
+ object_type: 'text',
331
+ privilege: 'text',
332
+ grantee_name: 'text',
333
+ is_grant: 'boolean'
320
334
  }
321
335
  },
322
336
  // =============================================================================
@@ -984,6 +998,7 @@ export const exportMeta = async ({ opts, dbname, database_id }) => {
984
998
  await queryAndParse('full_text_search', `SELECT * FROM metaschema_public.full_text_search WHERE database_id = $1`);
985
999
  await queryAndParse('schema_grant', `SELECT * FROM metaschema_public.schema_grant WHERE database_id = $1`);
986
1000
  await queryAndParse('table_grant', `SELECT * FROM metaschema_public.table_grant WHERE database_id = $1`);
1001
+ await queryAndParse('default_privilege', `SELECT * FROM metaschema_public.default_privilege WHERE database_id = $1`);
987
1002
  // =============================================================================
988
1003
  // services_public tables
989
1004
  // =============================================================================
@@ -229,6 +229,7 @@ SET session_replication_role TO DEFAULT;`;
229
229
  'full_text_search',
230
230
  'schema_grant',
231
231
  'table_grant',
232
+ 'default_privilege',
232
233
  'domains',
233
234
  'sites',
234
235
  'apis',
@@ -141,7 +141,7 @@ const config = {
141
141
  database_id: 'uuid',
142
142
  table_id: 'uuid',
143
143
  name: 'text',
144
- role_name: 'text',
144
+ grantee_name: 'text',
145
145
  privilege: 'text',
146
146
  permissive: 'boolean',
147
147
  disabled: 'boolean',
@@ -318,8 +318,22 @@ const config = {
318
318
  database_id: 'uuid',
319
319
  table_id: 'uuid',
320
320
  privilege: 'text',
321
- role_name: 'text',
322
- field_ids: 'uuid[]'
321
+ grantee_name: 'text',
322
+ field_ids: 'uuid[]',
323
+ is_grant: 'boolean'
324
+ }
325
+ },
326
+ default_privilege: {
327
+ schema: 'metaschema_public',
328
+ table: 'default_privilege',
329
+ fields: {
330
+ id: 'uuid',
331
+ database_id: 'uuid',
332
+ schema_id: 'uuid',
333
+ object_type: 'text',
334
+ privilege: 'text',
335
+ grantee_name: 'text',
336
+ is_grant: 'boolean'
323
337
  }
324
338
  },
325
339
  // =============================================================================
@@ -987,6 +1001,7 @@ const exportMeta = async ({ opts, dbname, database_id }) => {
987
1001
  await queryAndParse('full_text_search', `SELECT * FROM metaschema_public.full_text_search WHERE database_id = $1`);
988
1002
  await queryAndParse('schema_grant', `SELECT * FROM metaschema_public.schema_grant WHERE database_id = $1`);
989
1003
  await queryAndParse('table_grant', `SELECT * FROM metaschema_public.table_grant WHERE database_id = $1`);
1004
+ await queryAndParse('default_privilege', `SELECT * FROM metaschema_public.default_privilege WHERE database_id = $1`);
990
1005
  // =============================================================================
991
1006
  // services_public tables
992
1007
  // =============================================================================
@@ -235,6 +235,7 @@ SET session_replication_role TO DEFAULT;`;
235
235
  'full_text_search',
236
236
  'schema_grant',
237
237
  'table_grant',
238
+ 'default_privilege',
238
239
  'domains',
239
240
  'sites',
240
241
  'apis',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pgpmjs/core",
3
- "version": "6.3.0",
3
+ "version": "6.3.1",
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": "594881150b097a4575f5dcdccf46207351d2a080"
68
+ "gitHead": "0deec313ff9af77b02cb749be9ef34e236e8cab8"
69
69
  }