@pgpm/metaschema-modules 0.28.2 → 0.28.4
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.
- package/Makefile +1 -1
- package/README.md +1 -16
- package/deploy/schemas/metaschema_modules_public/tables/agent_module/table.sql +4 -0
- package/deploy/schemas/metaschema_modules_public/tables/billing_module/table.sql +4 -0
- package/deploy/schemas/metaschema_modules_public/tables/compute_log_module/table.sql +4 -0
- package/deploy/schemas/metaschema_modules_public/tables/config_secrets_module/table.sql +4 -0
- package/deploy/schemas/metaschema_modules_public/tables/db_usage_module/table.sql +4 -0
- package/deploy/schemas/metaschema_modules_public/tables/events_module/table.sql +4 -0
- package/deploy/schemas/metaschema_modules_public/tables/function_deployment_module/table.sql +81 -0
- package/deploy/schemas/metaschema_modules_public/tables/function_module/constraints/one_platform_database.sql +18 -0
- package/deploy/schemas/metaschema_modules_public/tables/graph_module/table.sql +2 -5
- package/deploy/schemas/metaschema_modules_public/tables/hierarchy_module/table.sql +1 -1
- package/deploy/schemas/metaschema_modules_public/tables/identity_providers_module/table.sql +4 -0
- package/deploy/schemas/metaschema_modules_public/tables/inference_log_module/table.sql +4 -0
- package/deploy/schemas/metaschema_modules_public/tables/invites_module/table.sql +4 -0
- package/deploy/schemas/metaschema_modules_public/tables/limits_module/table.sql +4 -0
- package/deploy/schemas/metaschema_modules_public/tables/memberships_module/table.sql +4 -0
- package/deploy/schemas/metaschema_modules_public/tables/merkle_store_module/table.sql +5 -0
- package/deploy/schemas/metaschema_modules_public/tables/namespace_module/table.sql +6 -0
- package/deploy/schemas/metaschema_modules_public/tables/notifications_module/table.sql +4 -0
- package/deploy/schemas/metaschema_modules_public/tables/permissions_module/table.sql +4 -0
- package/deploy/schemas/metaschema_modules_public/tables/plans_module/table.sql +4 -0
- package/deploy/schemas/metaschema_modules_public/tables/principal_auth_module/table.sql +58 -0
- package/deploy/schemas/metaschema_modules_public/tables/profiles_module/table.sql +4 -0
- package/deploy/schemas/metaschema_modules_public/tables/rate_limit_meters_module/table.sql +4 -0
- package/deploy/schemas/metaschema_modules_public/tables/storage_log_module/table.sql +4 -0
- package/deploy/schemas/metaschema_modules_public/tables/storage_module/table.sql +7 -1
- package/deploy/schemas/metaschema_modules_public/tables/transfer_log_module/table.sql +4 -0
- package/metaschema-modules.control +1 -1
- package/package.json +6 -5
- package/pgpm.plan +4 -1
- package/revert/schemas/metaschema_modules_public/tables/config_secrets_module/table.sql +1 -1
- package/revert/schemas/metaschema_modules_public/tables/function_deployment_module/table.sql +7 -0
- package/revert/schemas/metaschema_modules_public/tables/function_module/constraints/one_platform_database.sql +7 -0
- package/revert/schemas/metaschema_modules_public/tables/principal_auth_module/table.sql +7 -0
- package/revert/schemas/metaschema_modules_public/tables/user_credentials_module/table.sql +1 -1
- package/revert/schemas/metaschema_modules_public/tables/user_settings_module/table.sql +1 -1
- package/sql/{metaschema-modules--0.26.5.sql → metaschema-modules--0.15.5.sql} +428 -215
- package/verify/schemas/metaschema_modules_public/tables/agent_chat_module/table.sql +20 -0
- package/verify/schemas/metaschema_modules_public/tables/agent_module/table.sql +3 -5
- package/verify/schemas/metaschema_modules_public/tables/compute_log_module/table.sql +2 -1
- package/verify/schemas/metaschema_modules_public/tables/config_secrets_org_module/table.sql +3 -5
- package/verify/schemas/metaschema_modules_public/tables/db_usage_module/table.sql +2 -5
- package/verify/schemas/metaschema_modules_public/tables/entity_type_provision/table.sql +3 -5
- package/verify/schemas/metaschema_modules_public/tables/function_deployment_module/table.sql +14 -0
- package/verify/schemas/metaschema_modules_public/tables/function_invocation_module/table.sql +9 -1
- package/verify/schemas/metaschema_modules_public/tables/function_module/constraints/one_platform_database.sql +11 -0
- package/verify/schemas/metaschema_modules_public/tables/graph_module/table.sql +3 -5
- package/verify/schemas/metaschema_modules_public/tables/inference_log_module/table.sql +2 -1
- package/verify/schemas/metaschema_modules_public/tables/merkle_store_module/table.sql +3 -5
- package/verify/schemas/metaschema_modules_public/tables/namespace_module/table.sql +1 -3
- package/verify/schemas/metaschema_modules_public/tables/principal_auth_module/table.sql +14 -0
- package/verify/schemas/metaschema_modules_public/tables/profiles_module/table.sql +0 -1
- package/verify/schemas/metaschema_modules_public/tables/relation_provision/table.sql +0 -3
- package/verify/schemas/metaschema_modules_public/tables/secure_table_provision/table.sql +0 -1
- package/verify/schemas/metaschema_modules_public/tables/session_secrets_module/table.sql +3 -5
- package/verify/schemas/metaschema_modules_public/tables/storage_log_module/table.sql +1 -1
- package/verify/schemas/metaschema_modules_public/tables/transfer_log_module/table.sql +1 -1
- package/verify/schemas/metaschema_modules_public/tables/user_settings_module/table.sql +1 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
-- Verify schemas/metaschema_modules_public/tables/agent_module/table on pg
|
|
2
|
+
|
|
3
|
+
BEGIN;
|
|
4
|
+
|
|
5
|
+
SELECT
|
|
6
|
+
id,
|
|
7
|
+
database_id,
|
|
8
|
+
schema_id,
|
|
9
|
+
private_schema_id,
|
|
10
|
+
thread_table_id,
|
|
11
|
+
thread_table_name,
|
|
12
|
+
message_table_id,
|
|
13
|
+
message_table_name,
|
|
14
|
+
task_table_id,
|
|
15
|
+
task_table_name,
|
|
16
|
+
prefix
|
|
17
|
+
FROM metaschema_modules_public.agent_module
|
|
18
|
+
WHERE FALSE;
|
|
19
|
+
|
|
20
|
+
ROLLBACK;
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
SELECT id, database_id, schema_id, private_schema_id,
|
|
4
4
|
compute_log_table_id, compute_log_table_name,
|
|
5
5
|
usage_daily_table_id, usage_daily_table_name,
|
|
6
|
-
retention,
|
|
6
|
+
retention, premake,
|
|
7
|
+
actor_fk_table_id, entity_fk_table_id,
|
|
7
8
|
prefix
|
|
8
9
|
FROM metaschema_modules_public.compute_log_module
|
|
9
10
|
WHERE FALSE;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
-- Verify schemas/metaschema_modules_public/tables/config_secrets_org_module/table on pg
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
ROLLBACK;
|
|
3
|
+
SELECT id, database_id
|
|
4
|
+
FROM metaschema_modules_public.config_secrets_org_module
|
|
5
|
+
WHERE FALSE;
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
-- Verify schemas/metaschema_modules_public/tables/db_usage_module/table on pg
|
|
2
2
|
|
|
3
3
|
SELECT id, database_id, schema_id, private_schema_id,
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
query_stats_log_table_id, query_stats_log_table_name,
|
|
7
|
-
query_stats_daily_table_id, query_stats_daily_table_name,
|
|
8
|
-
retention, scope, prefix
|
|
4
|
+
retention, premake,
|
|
5
|
+
prefix
|
|
9
6
|
FROM metaschema_modules_public.db_usage_module
|
|
10
7
|
WHERE FALSE;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
-- Verify schemas/metaschema_modules_public/tables/entity_type_provision/table on pg
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
ROLLBACK;
|
|
3
|
+
SELECT id, database_id
|
|
4
|
+
FROM metaschema_modules_public.entity_type_provision
|
|
5
|
+
WHERE FALSE;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
-- Verify schemas/metaschema_modules_public/tables/function_deployment_module/table on pg
|
|
2
|
+
|
|
3
|
+
BEGIN;
|
|
4
|
+
|
|
5
|
+
SELECT id, database_id, schema_id, private_schema_id,
|
|
6
|
+
deployments_table_id, deployment_events_table_id,
|
|
7
|
+
deployments_table_name, deployment_events_table_name,
|
|
8
|
+
scope, prefix, entity_table_id,
|
|
9
|
+
function_module_id, namespace_module_id,
|
|
10
|
+
policies, provisions
|
|
11
|
+
FROM metaschema_modules_public.function_deployment_module
|
|
12
|
+
WHERE false;
|
|
13
|
+
|
|
14
|
+
ROLLBACK;
|
package/verify/schemas/metaschema_modules_public/tables/function_invocation_module/table.sql
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
BEGIN;
|
|
4
4
|
|
|
5
|
-
SELECT
|
|
5
|
+
SELECT id, database_id, schema_id, private_schema_id,
|
|
6
|
+
public_schema_name, private_schema_name,
|
|
7
|
+
invocations_table_id, execution_logs_table_id,
|
|
8
|
+
invocations_table_name, execution_logs_table_name,
|
|
9
|
+
api_name, private_api_name,
|
|
10
|
+
scope, prefix, entity_table_id,
|
|
11
|
+
policies, provisions, default_permissions
|
|
12
|
+
FROM metaschema_modules_public.function_invocation_module
|
|
13
|
+
WHERE false;
|
|
6
14
|
|
|
7
15
|
ROLLBACK;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
-- Verify schemas/metaschema_modules_public/tables/function_module/constraints/one_platform_database on pg
|
|
2
|
+
|
|
3
|
+
BEGIN;
|
|
4
|
+
|
|
5
|
+
-- No-op verification: the migration is purely documentation.
|
|
6
|
+
-- Verify by confirming the function_module table exists.
|
|
7
|
+
SELECT 1 FROM pg_tables
|
|
8
|
+
WHERE tablename = 'function_module'
|
|
9
|
+
AND schemaname = 'metaschema_modules_public';
|
|
10
|
+
|
|
11
|
+
ROLLBACK;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
-- Verify schemas/metaschema_modules_public/tables/merkle_store_module/table on pg
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
ROLLBACK;
|
|
3
|
+
SELECT id, database_id
|
|
4
|
+
FROM metaschema_modules_public.merkle_store_module
|
|
5
|
+
WHERE FALSE;
|
|
@@ -3,11 +3,9 @@
|
|
|
3
3
|
BEGIN;
|
|
4
4
|
|
|
5
5
|
SELECT id, database_id, schema_id, private_schema_id,
|
|
6
|
-
public_schema_name, private_schema_name,
|
|
7
6
|
namespaces_table_id, namespace_events_table_id,
|
|
8
7
|
namespaces_table_name, namespace_events_table_name,
|
|
9
|
-
|
|
10
|
-
entity_table_id, policies, provisions, default_permissions
|
|
8
|
+
entity_table_id, policies
|
|
11
9
|
FROM metaschema_modules_public.namespace_module
|
|
12
10
|
WHERE false;
|
|
13
11
|
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
-- Verify schemas/metaschema_modules_public/tables/principal_auth_module/table on pg
|
|
2
|
+
|
|
3
|
+
BEGIN;
|
|
4
|
+
|
|
5
|
+
SELECT id, database_id, schema_id, principals_table_id,
|
|
6
|
+
principal_entities_table_id,
|
|
7
|
+
users_table_id, sessions_table_id, session_credentials_table_id,
|
|
8
|
+
audits_table_id, principals_table_name,
|
|
9
|
+
create_principal_function, delete_principal_function,
|
|
10
|
+
api_name
|
|
11
|
+
FROM metaschema_modules_public.principal_auth_module
|
|
12
|
+
WHERE FALSE;
|
|
13
|
+
|
|
14
|
+
ROLLBACK;
|
|
@@ -6,7 +6,6 @@ SELECT id, database_id, schema_id, private_schema_id, table_id, table_name,
|
|
|
6
6
|
profile_permissions_table_id, profile_permissions_table_name,
|
|
7
7
|
profile_grants_table_id, profile_grants_table_name,
|
|
8
8
|
profile_definition_grants_table_id, profile_definition_grants_table_name,
|
|
9
|
-
profile_templates_table_id, profile_templates_table_name,
|
|
10
9
|
entity_table_id, actor_table_id,
|
|
11
10
|
permissions_table_id, memberships_table_id, prefix
|
|
12
11
|
FROM metaschema_modules_public.profiles_module
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
-- Verify schemas/metaschema_modules_public/tables/session_secrets_module/table on pg
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
ROLLBACK;
|
|
3
|
+
SELECT id, database_id
|
|
4
|
+
FROM metaschema_modules_public.session_secrets_module
|
|
5
|
+
WHERE FALSE;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
SELECT id, database_id, schema_id, private_schema_id,
|
|
4
4
|
storage_log_table_id, storage_log_table_name,
|
|
5
5
|
usage_daily_table_id, usage_daily_table_name,
|
|
6
|
-
retention,
|
|
6
|
+
"interval", retention, premake,
|
|
7
7
|
actor_fk_table_id, entity_fk_table_id,
|
|
8
8
|
prefix
|
|
9
9
|
FROM metaschema_modules_public.storage_log_module
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
SELECT id, database_id, schema_id, private_schema_id,
|
|
4
4
|
transfer_log_table_id, transfer_log_table_name,
|
|
5
5
|
usage_daily_table_id, usage_daily_table_name,
|
|
6
|
-
retention,
|
|
6
|
+
"interval", retention, premake,
|
|
7
7
|
actor_fk_table_id, entity_fk_table_id,
|
|
8
8
|
prefix
|
|
9
9
|
FROM metaschema_modules_public.transfer_log_module
|