@pgpm/metaschema-modules 0.28.4 → 0.29.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.
Files changed (18) hide show
  1. package/deploy/schemas/metaschema_modules_public/tables/config_secrets_module/table.sql +6 -9
  2. package/deploy/schemas/metaschema_modules_public/tables/config_secrets_user_module/table.sql +1 -6
  3. package/deploy/schemas/metaschema_modules_public/tables/entity_type_provision/table.sql +0 -2
  4. package/deploy/schemas/metaschema_modules_public/tables/function_deployment_module/table.sql +2 -2
  5. package/deploy/schemas/metaschema_modules_public/tables/function_invocation_module/table.sql +2 -2
  6. package/deploy/schemas/metaschema_modules_public/tables/function_module/table.sql +3 -6
  7. package/deploy/schemas/metaschema_modules_public/tables/graph_execution_module/table.sql +2 -2
  8. package/deploy/schemas/metaschema_modules_public/tables/identity_providers_module/table.sql +7 -7
  9. package/deploy/schemas/metaschema_modules_public/tables/namespace_module/table.sql +2 -8
  10. package/deploy/schemas/metaschema_modules_public/tables/resource_module/table.sql +76 -0
  11. package/package.json +4 -4
  12. package/pgpm.plan +1 -1
  13. package/revert/schemas/metaschema_modules_public/tables/resource_module/table.sql +7 -0
  14. package/sql/metaschema-modules--0.15.5.sql +289 -272
  15. package/verify/schemas/metaschema_modules_public/tables/resource_module/table.sql +13 -0
  16. package/deploy/schemas/metaschema_modules_public/tables/config_secrets_org_module/table.sql +0 -32
  17. package/revert/schemas/metaschema_modules_public/tables/config_secrets_org_module/table.sql +0 -7
  18. package/verify/schemas/metaschema_modules_public/tables/config_secrets_org_module/table.sql +0 -5
@@ -0,0 +1,13 @@
1
+ -- Verify schemas/metaschema_modules_public/tables/resource_module/table on pg
2
+
3
+ BEGIN;
4
+
5
+ SELECT id, database_id, schema_id, private_schema_id,
6
+ resources_table_id, resource_events_table_id,
7
+ resources_table_name, resource_events_table_name,
8
+ scope, prefix, entity_table_id, namespace_module_id,
9
+ policies, provisions, default_permissions
10
+ FROM metaschema_modules_public.resource_module
11
+ WHERE FALSE;
12
+
13
+ ROLLBACK;
@@ -1,32 +0,0 @@
1
- -- Deploy schemas/metaschema_modules_public/tables/config_secrets_org_module/table to pg
2
-
3
- -- requires: schemas/metaschema_modules_public/schema
4
-
5
- BEGIN;
6
-
7
- CREATE TABLE metaschema_modules_public.config_secrets_org_module (
8
- id uuid PRIMARY KEY DEFAULT uuidv7(),
9
- database_id uuid NOT NULL,
10
-
11
- --
12
- schema_id uuid NOT NULL DEFAULT uuid_nil(),
13
- table_id uuid NOT NULL DEFAULT uuid_nil(),
14
- table_name text NOT NULL DEFAULT 'org_secrets',
15
- --
16
-
17
- -- API routing (configurable per-module)
18
- api_name text DEFAULT 'config',
19
- private_api_name text DEFAULT NULL,
20
-
21
- CONSTRAINT db_fkey FOREIGN KEY (database_id) REFERENCES metaschema_public.database (id) ON DELETE CASCADE,
22
- CONSTRAINT schema_fkey FOREIGN KEY (schema_id) REFERENCES metaschema_public.schema (id) ON DELETE CASCADE,
23
- CONSTRAINT table_fkey FOREIGN KEY (table_id) REFERENCES metaschema_public.table (id) ON DELETE CASCADE
24
- );
25
-
26
- CREATE INDEX config_secrets_org_module_database_id_idx ON metaschema_modules_public.config_secrets_org_module ( database_id );
27
- CREATE INDEX config_secrets_org_module_schema_id_idx ON metaschema_modules_public.config_secrets_org_module ( schema_id );
28
- CREATE INDEX config_secrets_org_module_table_id_idx ON metaschema_modules_public.config_secrets_org_module ( table_id );
29
-
30
- COMMENT ON TABLE metaschema_modules_public.config_secrets_org_module IS 'Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS.';
31
-
32
- COMMIT;
@@ -1,7 +0,0 @@
1
- -- Revert schemas/metaschema_modules_public/tables/config_secrets_org_module/table from pg
2
-
3
- BEGIN;
4
-
5
- DROP TABLE metaschema_modules_public.config_secrets_org_module;
6
-
7
- COMMIT;
@@ -1,5 +0,0 @@
1
- -- Verify schemas/metaschema_modules_public/tables/config_secrets_org_module/table on pg
2
-
3
- SELECT id, database_id
4
- FROM metaschema_modules_public.config_secrets_org_module
5
- WHERE FALSE;