@pgpmjs/core 6.3.0 → 6.3.2
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
|
-
|
|
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
|
-
|
|
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
|
// =============================================================================
|
|
@@ -633,8 +647,7 @@ const config = {
|
|
|
633
647
|
rebuild_hierarchy_function: 'text',
|
|
634
648
|
get_subordinates_function: 'text',
|
|
635
649
|
get_managers_function: 'text',
|
|
636
|
-
is_manager_of_function: 'text'
|
|
637
|
-
created_at: 'timestamptz'
|
|
650
|
+
is_manager_of_function: 'text'
|
|
638
651
|
}
|
|
639
652
|
},
|
|
640
653
|
membership_types_module: {
|
|
@@ -984,6 +997,7 @@ export const exportMeta = async ({ opts, dbname, database_id }) => {
|
|
|
984
997
|
await queryAndParse('full_text_search', `SELECT * FROM metaschema_public.full_text_search WHERE database_id = $1`);
|
|
985
998
|
await queryAndParse('schema_grant', `SELECT * FROM metaschema_public.schema_grant WHERE database_id = $1`);
|
|
986
999
|
await queryAndParse('table_grant', `SELECT * FROM metaschema_public.table_grant WHERE database_id = $1`);
|
|
1000
|
+
await queryAndParse('default_privilege', `SELECT * FROM metaschema_public.default_privilege WHERE database_id = $1`);
|
|
987
1001
|
// =============================================================================
|
|
988
1002
|
// services_public tables
|
|
989
1003
|
// =============================================================================
|
package/export/export-meta.js
CHANGED
|
@@ -141,7 +141,7 @@ const config = {
|
|
|
141
141
|
database_id: 'uuid',
|
|
142
142
|
table_id: 'uuid',
|
|
143
143
|
name: 'text',
|
|
144
|
-
|
|
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
|
-
|
|
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
|
// =============================================================================
|
|
@@ -636,8 +650,7 @@ const config = {
|
|
|
636
650
|
rebuild_hierarchy_function: 'text',
|
|
637
651
|
get_subordinates_function: 'text',
|
|
638
652
|
get_managers_function: 'text',
|
|
639
|
-
is_manager_of_function: 'text'
|
|
640
|
-
created_at: 'timestamptz'
|
|
653
|
+
is_manager_of_function: 'text'
|
|
641
654
|
}
|
|
642
655
|
},
|
|
643
656
|
membership_types_module: {
|
|
@@ -987,6 +1000,7 @@ const exportMeta = async ({ opts, dbname, database_id }) => {
|
|
|
987
1000
|
await queryAndParse('full_text_search', `SELECT * FROM metaschema_public.full_text_search WHERE database_id = $1`);
|
|
988
1001
|
await queryAndParse('schema_grant', `SELECT * FROM metaschema_public.schema_grant WHERE database_id = $1`);
|
|
989
1002
|
await queryAndParse('table_grant', `SELECT * FROM metaschema_public.table_grant WHERE database_id = $1`);
|
|
1003
|
+
await queryAndParse('default_privilege', `SELECT * FROM metaschema_public.default_privilege WHERE database_id = $1`);
|
|
990
1004
|
// =============================================================================
|
|
991
1005
|
// services_public tables
|
|
992
1006
|
// =============================================================================
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pgpmjs/core",
|
|
3
|
-
"version": "6.3.
|
|
3
|
+
"version": "6.3.2",
|
|
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": "
|
|
68
|
+
"gitHead": "1b17d61b375abaa04310abe05c2a3ca5881ac650"
|
|
69
69
|
}
|