@pgpmjs/core 6.3.1 → 6.4.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.
@@ -199,34 +199,6 @@ const config = {
199
199
  security: 'int'
200
200
  }
201
201
  },
202
- limit_function: {
203
- schema: 'metaschema_public',
204
- table: 'limit_function',
205
- fields: {
206
- id: 'uuid',
207
- database_id: 'uuid',
208
- table_id: 'uuid',
209
- name: 'text',
210
- label: 'text',
211
- description: 'text',
212
- data: 'jsonb',
213
- security: 'int'
214
- }
215
- },
216
- procedure: {
217
- schema: 'metaschema_public',
218
- table: 'procedure',
219
- fields: {
220
- id: 'uuid',
221
- database_id: 'uuid',
222
- name: 'text',
223
- argnames: 'text[]',
224
- argtypes: 'text[]',
225
- argdefaults: 'text[]',
226
- lang_name: 'text',
227
- definition: 'text'
228
- }
229
- },
230
202
  foreign_key_constraint: {
231
203
  schema: 'metaschema_public',
232
204
  table: 'foreign_key_constraint',
@@ -647,8 +619,7 @@ const config = {
647
619
  rebuild_hierarchy_function: 'text',
648
620
  get_subordinates_function: 'text',
649
621
  get_managers_function: 'text',
650
- is_manager_of_function: 'text',
651
- created_at: 'timestamptz'
622
+ is_manager_of_function: 'text'
652
623
  }
653
624
  },
654
625
  membership_types_module: {
@@ -989,8 +960,6 @@ export const exportMeta = async ({ opts, dbname, database_id }) => {
989
960
  await queryAndParse('trigger', `SELECT * FROM metaschema_public.trigger WHERE database_id = $1`);
990
961
  await queryAndParse('trigger_function', `SELECT * FROM metaschema_public.trigger_function WHERE database_id = $1`);
991
962
  await queryAndParse('rls_function', `SELECT * FROM metaschema_public.rls_function WHERE database_id = $1`);
992
- await queryAndParse('limit_function', `SELECT * FROM metaschema_public.limit_function WHERE database_id = $1`);
993
- await queryAndParse('procedure', `SELECT * FROM metaschema_public.procedure WHERE database_id = $1`);
994
963
  await queryAndParse('foreign_key_constraint', `SELECT * FROM metaschema_public.foreign_key_constraint WHERE database_id = $1`);
995
964
  await queryAndParse('primary_key_constraint', `SELECT * FROM metaschema_public.primary_key_constraint WHERE database_id = $1`);
996
965
  await queryAndParse('unique_constraint', `SELECT * FROM metaschema_public.unique_constraint WHERE database_id = $1`);
@@ -220,8 +220,6 @@ SET session_replication_role TO DEFAULT;`;
220
220
  'trigger',
221
221
  'trigger_function',
222
222
  'rls_function',
223
- 'limit_function',
224
- 'procedure',
225
223
  'foreign_key_constraint',
226
224
  'primary_key_constraint',
227
225
  'unique_constraint',
@@ -202,34 +202,6 @@ const config = {
202
202
  security: 'int'
203
203
  }
204
204
  },
205
- limit_function: {
206
- schema: 'metaschema_public',
207
- table: 'limit_function',
208
- fields: {
209
- id: 'uuid',
210
- database_id: 'uuid',
211
- table_id: 'uuid',
212
- name: 'text',
213
- label: 'text',
214
- description: 'text',
215
- data: 'jsonb',
216
- security: 'int'
217
- }
218
- },
219
- procedure: {
220
- schema: 'metaschema_public',
221
- table: 'procedure',
222
- fields: {
223
- id: 'uuid',
224
- database_id: 'uuid',
225
- name: 'text',
226
- argnames: 'text[]',
227
- argtypes: 'text[]',
228
- argdefaults: 'text[]',
229
- lang_name: 'text',
230
- definition: 'text'
231
- }
232
- },
233
205
  foreign_key_constraint: {
234
206
  schema: 'metaschema_public',
235
207
  table: 'foreign_key_constraint',
@@ -650,8 +622,7 @@ const config = {
650
622
  rebuild_hierarchy_function: 'text',
651
623
  get_subordinates_function: 'text',
652
624
  get_managers_function: 'text',
653
- is_manager_of_function: 'text',
654
- created_at: 'timestamptz'
625
+ is_manager_of_function: 'text'
655
626
  }
656
627
  },
657
628
  membership_types_module: {
@@ -992,8 +963,6 @@ const exportMeta = async ({ opts, dbname, database_id }) => {
992
963
  await queryAndParse('trigger', `SELECT * FROM metaschema_public.trigger WHERE database_id = $1`);
993
964
  await queryAndParse('trigger_function', `SELECT * FROM metaschema_public.trigger_function WHERE database_id = $1`);
994
965
  await queryAndParse('rls_function', `SELECT * FROM metaschema_public.rls_function WHERE database_id = $1`);
995
- await queryAndParse('limit_function', `SELECT * FROM metaschema_public.limit_function WHERE database_id = $1`);
996
- await queryAndParse('procedure', `SELECT * FROM metaschema_public.procedure WHERE database_id = $1`);
997
966
  await queryAndParse('foreign_key_constraint', `SELECT * FROM metaschema_public.foreign_key_constraint WHERE database_id = $1`);
998
967
  await queryAndParse('primary_key_constraint', `SELECT * FROM metaschema_public.primary_key_constraint WHERE database_id = $1`);
999
968
  await queryAndParse('unique_constraint', `SELECT * FROM metaschema_public.unique_constraint WHERE database_id = $1`);
@@ -226,8 +226,6 @@ SET session_replication_role TO DEFAULT;`;
226
226
  'trigger',
227
227
  'trigger_function',
228
228
  'rls_function',
229
- 'limit_function',
230
- 'procedure',
231
229
  'foreign_key_constraint',
232
230
  'primary_key_constraint',
233
231
  'unique_constraint',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pgpmjs/core",
3
- "version": "6.3.1",
3
+ "version": "6.4.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": "0deec313ff9af77b02cb749be9ef34e236e8cab8"
68
+ "gitHead": "1e0c774144be23a4c57a15ffe54ea0ec9fbd7c55"
69
69
  }