Skip to content

Commit 9d19c5e

Browse files
committed
fix: add full constructive-compute-stubs pgpm package (control + deploy/revert/verify)
The stubs package was previously only a bare SQL file without the .control file, pgpm.plan, or deploy/revert/verify directories. This caused pgpm to fail with 'extension constructive-compute-stubs is not available' when deploying constructive-platform-function-graph (which requires it).
1 parent f099d2b commit 9d19c5e

399 files changed

Lines changed: 3139 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
__tests__
2+
jest.config.js
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
EXTENSION = constructive-compute-stubs
2+
DATA = sql/constructive-compute-stubs--0.0.1.sql
3+
4+
PG_CONFIG = pg_config
5+
PGXS := $(shell $(PG_CONFIG) --pgxs)
6+
include $(PGXS)
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# constructive-compute-stubs extension
2+
comment = 'constructive-compute-stubs module'
3+
default_version = '0.0.1'
4+
relocatable = false
5+
requires = 'plpgsql,pgpm-inflection,pgpm-stamps'
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
-- Deploy: schemas/constructive_infra_private/schema
2+
-- made with <3 @ constructive.io
3+
4+
5+
6+
7+
CREATE SCHEMA "constructive_infra_private";
8+
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
-- Deploy: schemas/constructive_infra_public/schema
2+
-- made with <3 @ constructive.io
3+
4+
5+
6+
7+
CREATE SCHEMA "constructive_infra_public";
8+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
-- Deploy: schemas/constructive_infra_public/tables/platform_namespace_events/alterations/alt0000001918
2+
-- made with <3 @ constructive.io
3+
4+
-- requires: schemas/constructive_infra_public/schema
5+
-- requires: schemas/constructive_infra_public/tables/platform_namespace_events/table
6+
7+
8+
ALTER TABLE "constructive_infra_public".platform_namespace_events
9+
DISABLE ROW LEVEL SECURITY;
10+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
-- Deploy: schemas/constructive_infra_public/tables/platform_namespace_events/alterations/alt0000001919
2+
-- made with <3 @ constructive.io
3+
4+
-- requires: schemas/constructive_infra_public/schema
5+
-- requires: schemas/constructive_infra_public/tables/platform_namespace_events/table
6+
7+
8+
COMMENT ON TABLE "constructive_infra_public".platform_namespace_events IS E'Namespace lifecycle events — audit log of creation, activation, deactivation, label changes';
9+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
-- Deploy: schemas/constructive_infra_public/tables/platform_namespace_events/columns/actor_id/alterations/alt0000001928
2+
-- made with <3 @ constructive.io
3+
4+
-- requires: schemas/constructive_infra_public/schema
5+
-- requires: schemas/constructive_infra_public/tables/platform_namespace_events/columns/actor_id/column
6+
7+
8+
COMMENT ON COLUMN "constructive_infra_public".platform_namespace_events.actor_id IS E'User who triggered this event (NULL for system/automated)';
9+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
-- Deploy: schemas/constructive_infra_public/tables/platform_namespace_events/columns/actor_id/column
2+
-- made with <3 @ constructive.io
3+
4+
-- requires: schemas/constructive_infra_public/schema
5+
-- requires: schemas/constructive_infra_public/tables/platform_namespace_events/table
6+
7+
8+
ALTER TABLE "constructive_infra_public".platform_namespace_events
9+
ADD COLUMN actor_id uuid;
10+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
-- Deploy: schemas/constructive_infra_public/tables/platform_namespace_events/columns/cpu_millicores/alterations/alt0000001931
2+
-- made with <3 @ constructive.io
3+
4+
-- requires: schemas/constructive_infra_public/schema
5+
-- requires: schemas/constructive_infra_public/tables/platform_namespace_events/columns/cpu_millicores/column
6+
7+
8+
COMMENT ON COLUMN "constructive_infra_public".platform_namespace_events.cpu_millicores IS 'CPU usage in millicores at time of event';
9+

0 commit comments

Comments
 (0)