@pgpmjs/core 4.15.0 → 4.16.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.
@@ -841,44 +841,19 @@ const config = {
841
841
  fields: 'uuid[]'
842
842
  }
843
843
  },
844
- user_profiles_module: {
844
+ table_template_module: {
845
845
  schema: 'metaschema_modules_public',
846
- table: 'user_profiles_module',
847
- fields: {
848
- id: 'uuid',
849
- database_id: 'uuid',
850
- schema_id: 'uuid',
851
- private_schema_id: 'uuid',
852
- table_id: 'uuid',
853
- table_name: 'text',
854
- users_table_id: 'uuid'
855
- }
856
- },
857
- user_settings_module: {
858
- schema: 'metaschema_modules_public',
859
- table: 'user_settings_module',
860
- fields: {
861
- id: 'uuid',
862
- database_id: 'uuid',
863
- schema_id: 'uuid',
864
- private_schema_id: 'uuid',
865
- table_id: 'uuid',
866
- table_name: 'text',
867
- users_table_id: 'uuid'
868
- }
869
- },
870
- organization_settings_module: {
871
- schema: 'metaschema_modules_public',
872
- table: 'organization_settings_module',
846
+ table: 'table_template_module',
873
847
  fields: {
874
848
  id: 'uuid',
875
849
  database_id: 'uuid',
876
850
  schema_id: 'uuid',
877
851
  private_schema_id: 'uuid',
878
852
  table_id: 'uuid',
853
+ owner_table_id: 'uuid',
879
854
  table_name: 'text',
880
- entity_table_id: 'uuid',
881
- membership_type: 'int'
855
+ node_type: 'text',
856
+ data: 'jsonb'
882
857
  }
883
858
  },
884
859
  uuid_module: {
@@ -1031,6 +1006,7 @@ export const exportMeta = async ({ opts, dbname, database_id }) => {
1031
1006
  await queryAndParse('crypto_addresses_module', `SELECT * FROM metaschema_modules_public.crypto_addresses_module WHERE database_id = $1`);
1032
1007
  await queryAndParse('crypto_auth_module', `SELECT * FROM metaschema_modules_public.crypto_auth_module WHERE database_id = $1`);
1033
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`);
1034
1010
  await queryAndParse('uuid_module', `SELECT * FROM metaschema_modules_public.uuid_module WHERE database_id = $1`);
1035
1011
  await queryAndParse('default_ids_module', `SELECT * FROM metaschema_modules_public.default_ids_module WHERE database_id = $1`);
1036
1012
  await queryAndParse('denormalized_table_field', `SELECT * FROM metaschema_modules_public.denormalized_table_field WHERE database_id = $1`);
@@ -844,44 +844,19 @@ const config = {
844
844
  fields: 'uuid[]'
845
845
  }
846
846
  },
847
- user_profiles_module: {
847
+ table_template_module: {
848
848
  schema: 'metaschema_modules_public',
849
- table: 'user_profiles_module',
850
- fields: {
851
- id: 'uuid',
852
- database_id: 'uuid',
853
- schema_id: 'uuid',
854
- private_schema_id: 'uuid',
855
- table_id: 'uuid',
856
- table_name: 'text',
857
- users_table_id: 'uuid'
858
- }
859
- },
860
- user_settings_module: {
861
- schema: 'metaschema_modules_public',
862
- table: 'user_settings_module',
863
- fields: {
864
- id: 'uuid',
865
- database_id: 'uuid',
866
- schema_id: 'uuid',
867
- private_schema_id: 'uuid',
868
- table_id: 'uuid',
869
- table_name: 'text',
870
- users_table_id: 'uuid'
871
- }
872
- },
873
- organization_settings_module: {
874
- schema: 'metaschema_modules_public',
875
- table: 'organization_settings_module',
849
+ table: 'table_template_module',
876
850
  fields: {
877
851
  id: 'uuid',
878
852
  database_id: 'uuid',
879
853
  schema_id: 'uuid',
880
854
  private_schema_id: 'uuid',
881
855
  table_id: 'uuid',
856
+ owner_table_id: 'uuid',
882
857
  table_name: 'text',
883
- entity_table_id: 'uuid',
884
- membership_type: 'int'
858
+ node_type: 'text',
859
+ data: 'jsonb'
885
860
  }
886
861
  },
887
862
  uuid_module: {
@@ -1034,6 +1009,7 @@ const exportMeta = async ({ opts, dbname, database_id }) => {
1034
1009
  await queryAndParse('crypto_addresses_module', `SELECT * FROM metaschema_modules_public.crypto_addresses_module WHERE database_id = $1`);
1035
1010
  await queryAndParse('crypto_auth_module', `SELECT * FROM metaschema_modules_public.crypto_auth_module WHERE database_id = $1`);
1036
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`);
1037
1013
  await queryAndParse('uuid_module', `SELECT * FROM metaschema_modules_public.uuid_module WHERE database_id = $1`);
1038
1014
  await queryAndParse('default_ids_module', `SELECT * FROM metaschema_modules_public.default_ids_module WHERE database_id = $1`);
1039
1015
  await queryAndParse('denormalized_table_field', `SELECT * FROM metaschema_modules_public.denormalized_table_field WHERE database_id = $1`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pgpmjs/core",
3
- "version": "4.15.0",
3
+ "version": "4.16.0",
4
4
  "author": "Constructive <developers@constructive.io>",
5
5
  "description": "PGPM Package and Migration Tools",
6
6
  "main": "index.js",
@@ -48,21 +48,21 @@
48
48
  "makage": "^0.1.10"
49
49
  },
50
50
  "dependencies": {
51
- "@pgpmjs/env": "^2.9.4",
52
- "@pgpmjs/logger": "^1.3.7",
53
- "@pgpmjs/server-utils": "^2.8.15",
54
- "@pgpmjs/types": "^2.14.1",
55
- "csv-to-pg": "^3.4.1",
51
+ "@pgpmjs/env": "^2.10.0",
52
+ "@pgpmjs/logger": "^1.4.0",
53
+ "@pgpmjs/server-utils": "^2.9.0",
54
+ "@pgpmjs/types": "^2.15.0",
55
+ "csv-to-pg": "^3.5.0",
56
56
  "genomic": "^5.2.3",
57
57
  "glob": "^13.0.0",
58
58
  "komoji": "^0.7.14",
59
59
  "parse-package-name": "^1.0.0",
60
60
  "pg": "^8.16.3",
61
- "pg-cache": "^1.6.15",
62
- "pg-env": "^1.2.5",
61
+ "pg-cache": "^1.7.0",
62
+ "pg-env": "^1.3.0",
63
63
  "pgsql-deparser": "^17.17.2",
64
64
  "pgsql-parser": "^17.9.11",
65
65
  "yanse": "^0.1.11"
66
66
  },
67
- "gitHead": "15e8f92ee6ec7bfebd6647dec743e4235b0362ac"
67
+ "gitHead": "481b3a50b4eec2da6b376c4cd1868065e1e28edb"
68
68
  }