Skip to content

Commit 4fe5dad

Browse files
committed
fix: add revert + verify scripts for compute_log and usage_daily tables
pgpm test-packages --full-cycle requires revert scripts for all plan entries. Generated reverts for platform_compute_log (23 files), platform_usage_daily (25 files), and rollup_compute_daily function.
1 parent f300332 commit 4fe5dad

50 files changed

Lines changed: 242 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: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
-- Revert: schemas/constructive_compute_private/procedures/rollup_compute_daily
2+
3+
4+
DROP FUNCTION "constructive_compute_private".rollup_compute_daily(timestamptz);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
-- Revert: schemas/constructive_compute_public/tables/platform_compute_log/columns/actor_id/column
2+
3+
4+
ALTER TABLE "constructive_compute_public".platform_compute_log
5+
DROP COLUMN actor_id RESTRICT;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
-- Revert: schemas/constructive_compute_public/tables/platform_compute_log/columns/database_id/column
2+
3+
4+
ALTER TABLE "constructive_compute_public".platform_compute_log
5+
DROP COLUMN database_id RESTRICT;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
-- Revert: schemas/constructive_compute_public/tables/platform_compute_log/columns/duration_ms/alterations/alt_not_null
2+
3+
4+
ALTER TABLE "constructive_compute_public".platform_compute_log
5+
ALTER COLUMN duration_ms DROP NOT NULL;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
-- Revert: schemas/constructive_compute_public/tables/platform_compute_log/columns/duration_ms/column
2+
3+
4+
ALTER TABLE "constructive_compute_public".platform_compute_log
5+
DROP COLUMN duration_ms RESTRICT;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
-- Revert: schemas/constructive_compute_public/tables/platform_compute_log/columns/entity_id/column
2+
3+
4+
ALTER TABLE "constructive_compute_public".platform_compute_log
5+
DROP COLUMN entity_id RESTRICT;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
-- Revert: schemas/constructive_compute_public/tables/platform_compute_log/columns/entity_type/column
2+
3+
4+
ALTER TABLE "constructive_compute_public".platform_compute_log
5+
DROP COLUMN entity_type RESTRICT;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
-- Revert: schemas/constructive_compute_public/tables/platform_compute_log/columns/error/column
2+
3+
4+
ALTER TABLE "constructive_compute_public".platform_compute_log
5+
DROP COLUMN error RESTRICT;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
-- Revert: schemas/constructive_compute_public/tables/platform_compute_log/columns/id/alterations/alt_default
2+
3+
4+
ALTER TABLE "constructive_compute_public".platform_compute_log
5+
ALTER COLUMN id DROP DEFAULT;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
-- Revert: schemas/constructive_compute_public/tables/platform_compute_log/columns/id/alterations/alt_not_null
2+
3+
4+
ALTER TABLE "constructive_compute_public".platform_compute_log
5+
ALTER COLUMN id DROP NOT NULL;

0 commit comments

Comments
 (0)