Skip to content

Commit b3c0d40

Browse files
committed
fix(pgpm): update partition defaults to use public schema for execution tables
The execution tables moved from constructive_compute_private to constructive_compute_public, but the default partition declarations in constructive-infra-seed still referenced the old private schema.
1 parent 856772a commit b3c0d40

3 files changed

Lines changed: 13 additions & 12 deletions

File tree

pgpm/constructive-infra-seed/deploy/partitions/create_default_partitions.sql

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,16 @@ CREATE TABLE IF NOT EXISTS constructive_compute_public.org_function_execution_lo
2222
CREATE TABLE IF NOT EXISTS constructive_infra_public.platform_namespace_events_default
2323
PARTITION OF constructive_infra_public.platform_namespace_events DEFAULT;
2424

25-
-- FBP module partitioned tables (now in constructive_compute_private after schema consolidation)
26-
CREATE TABLE IF NOT EXISTS constructive_compute_private.platform_function_graph_executions_default
27-
PARTITION OF constructive_compute_private.platform_function_graph_executions DEFAULT;
25+
-- FBP module partitioned tables (execution tables now in public schema)
26+
CREATE TABLE IF NOT EXISTS constructive_compute_public.platform_function_graph_executions_default
27+
PARTITION OF constructive_compute_public.platform_function_graph_executions DEFAULT;
2828

29-
CREATE TABLE IF NOT EXISTS constructive_compute_private.platform_function_graph_execution_outputs_default
30-
PARTITION OF constructive_compute_private.platform_function_graph_execution_outputs DEFAULT;
29+
CREATE TABLE IF NOT EXISTS constructive_compute_public.platform_function_graph_execution_outputs_default
30+
PARTITION OF constructive_compute_public.platform_function_graph_execution_outputs DEFAULT;
3131

3232
-- Execution node states (partitioned by created_at)
33-
CREATE TABLE IF NOT EXISTS constructive_compute_private.platform_function_graph_execution_node_states_default
34-
PARTITION OF constructive_compute_private.platform_function_graph_execution_node_states DEFAULT;
33+
CREATE TABLE IF NOT EXISTS constructive_compute_public.platform_function_graph_execution_node_states_default
34+
PARTITION OF constructive_compute_public.platform_function_graph_execution_node_states DEFAULT;
3535

3636
-- Compute usage logging (partitioned by completed_at)
3737
CREATE TABLE IF NOT EXISTS constructive_compute_public.platform_compute_log_default

pgpm/constructive-infra-seed/revert/partitions/create_default_partitions.sql

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ DROP TABLE IF EXISTS constructive_compute_public.app_function_execution_logs_def
77
DROP TABLE IF EXISTS constructive_compute_public.org_function_invocations_default;
88
DROP TABLE IF EXISTS constructive_compute_public.org_function_execution_logs_default;
99
DROP TABLE IF EXISTS constructive_infra_public.platform_namespace_events_default;
10-
DROP TABLE IF EXISTS constructive_compute_private.platform_function_graph_executions_default;
11-
DROP TABLE IF EXISTS constructive_compute_private.platform_function_graph_execution_outputs_default;
10+
DROP TABLE IF EXISTS constructive_compute_public.platform_function_graph_executions_default;
11+
DROP TABLE IF EXISTS constructive_compute_public.platform_function_graph_execution_outputs_default;
12+
DROP TABLE IF EXISTS constructive_compute_public.platform_function_graph_execution_node_states_default;
1213

1314
COMMIT;

pgpm/constructive-infra-seed/sql/constructive-infra-seed--0.0.1.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ CREATE TABLE IF NOT EXISTS constructive_compute_public.org_function_execution_lo
99

1010
CREATE TABLE IF NOT EXISTS constructive_infra_public.platform_namespace_events_default PARTITION OF constructive_infra_public.platform_namespace_events DEFAULT;
1111

12-
CREATE TABLE IF NOT EXISTS constructive_compute_private.platform_function_graph_executions_default PARTITION OF constructive_compute_private.platform_function_graph_executions DEFAULT;
12+
CREATE TABLE IF NOT EXISTS constructive_compute_public.platform_function_graph_executions_default PARTITION OF constructive_compute_public.platform_function_graph_executions DEFAULT;
1313

14-
CREATE TABLE IF NOT EXISTS constructive_compute_private.platform_function_graph_execution_outputs_default PARTITION OF constructive_compute_private.platform_function_graph_execution_outputs DEFAULT;
14+
CREATE TABLE IF NOT EXISTS constructive_compute_public.platform_function_graph_execution_outputs_default PARTITION OF constructive_compute_public.platform_function_graph_execution_outputs DEFAULT;
1515

16-
CREATE TABLE IF NOT EXISTS constructive_compute_private.platform_function_graph_execution_node_states_default PARTITION OF constructive_compute_private.platform_function_graph_execution_node_states DEFAULT;
16+
CREATE TABLE IF NOT EXISTS constructive_compute_public.platform_function_graph_execution_node_states_default PARTITION OF constructive_compute_public.platform_function_graph_execution_node_states DEFAULT;
1717

1818
CREATE TABLE IF NOT EXISTS constructive_compute_public.platform_compute_log_default PARTITION OF constructive_compute_public.platform_compute_log DEFAULT;
1919

0 commit comments

Comments
 (0)