Skip to content

Commit a9025bc

Browse files
committed
fix: add revert/verify scripts for Phase 1 tables (compute_log, usage_daily)
Phase 1 tables were hand-written without revert/verify scripts, causing pgpm test-packages --full-cycle to fail during the revert phase. Added 48 revert/verify scripts for platform_compute_log, platform_usage_daily, rollup_compute_daily, and their columns/indexes/constraints.
1 parent f8928bc commit a9025bc

98 files changed

Lines changed: 595 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: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
-- Revert: schemas/constructive_compute_private/procedures/rollup_compute_daily
2+
-- made with <3 @ constructive.io
3+
4+
BEGIN;
5+
6+
DROP FUNCTION IF EXISTS constructive_compute_private.rollup_compute_daily(timestamptz);
7+
8+
COMMIT;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
-- Revert: schemas/constructive_compute_public/tables/platform_compute_log/columns/actor_id/column
2+
-- made with <3 @ constructive.io
3+
4+
BEGIN;
5+
ALTER TABLE "constructive_compute_public".platform_compute_log DROP COLUMN IF EXISTS actor_id;
6+
COMMIT;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
-- Revert: schemas/constructive_compute_public/tables/platform_compute_log/columns/database_id/column
2+
-- made with <3 @ constructive.io
3+
4+
BEGIN;
5+
ALTER TABLE "constructive_compute_public".platform_compute_log DROP COLUMN IF EXISTS database_id;
6+
COMMIT;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
-- Revert: schemas/constructive_compute_public/tables/platform_compute_log/columns/duration_ms/alterations/alt_not_null
2+
-- made with <3 @ constructive.io
3+
4+
BEGIN;
5+
SELECT 1;
6+
COMMIT;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
-- Revert: schemas/constructive_compute_public/tables/platform_compute_log/columns/duration_ms/column
2+
-- made with <3 @ constructive.io
3+
4+
BEGIN;
5+
ALTER TABLE "constructive_compute_public".platform_compute_log DROP COLUMN IF EXISTS duration_ms;
6+
COMMIT;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
-- Revert: schemas/constructive_compute_public/tables/platform_compute_log/columns/entity_id/column
2+
-- made with <3 @ constructive.io
3+
4+
BEGIN;
5+
ALTER TABLE "constructive_compute_public".platform_compute_log DROP COLUMN IF EXISTS entity_id;
6+
COMMIT;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
-- Revert: schemas/constructive_compute_public/tables/platform_compute_log/columns/entity_type/column
2+
-- made with <3 @ constructive.io
3+
4+
BEGIN;
5+
ALTER TABLE "constructive_compute_public".platform_compute_log DROP COLUMN IF EXISTS entity_type;
6+
COMMIT;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
-- Revert: schemas/constructive_compute_public/tables/platform_compute_log/columns/error/column
2+
-- made with <3 @ constructive.io
3+
4+
BEGIN;
5+
ALTER TABLE "constructive_compute_public".platform_compute_log DROP COLUMN IF EXISTS error;
6+
COMMIT;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
-- Revert: schemas/constructive_compute_public/tables/platform_compute_log/columns/id/alterations/alt_default
2+
-- made with <3 @ constructive.io
3+
4+
BEGIN;
5+
SELECT 1;
6+
COMMIT;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
-- Revert: schemas/constructive_compute_public/tables/platform_compute_log/columns/id/alterations/alt_not_null
2+
-- made with <3 @ constructive.io
3+
4+
BEGIN;
5+
SELECT 1;
6+
COMMIT;

0 commit comments

Comments
 (0)