Skip to content

Commit 1c69491

Browse files
committed
fix: correct index and constraint names in revert scripts
Index names in revert must match what CREATE INDEX produced: - idx_task_completed → platform_compute_log_task_completed_idx - idx_db_completed → platform_compute_log_db_completed_idx - idx_actor_completed → platform_compute_log_actor_completed_idx - idx_unique_entity_task_date → platform_usage_daily_entity_task_date_idx - pk_completed_at_id → platform_compute_log_pkey - pk_id → platform_usage_daily_pkey
1 parent 4fe5dad commit 1c69491

6 files changed

Lines changed: 6 additions & 6 deletions

File tree

pgpm/constructive-compute/revert/schemas/constructive_compute_public/tables/platform_compute_log/constraints/pk_completed_at_id.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33

44
ALTER TABLE "constructive_compute_public".platform_compute_log
5-
DROP CONSTRAINT pk_completed_at_id;
5+
DROP CONSTRAINT platform_compute_log_pkey;
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
-- Revert: schemas/constructive_compute_public/tables/platform_compute_log/indexes/idx_actor_completed
22

33

4-
DROP INDEX "constructive_compute_public".idx_actor_completed;
4+
DROP INDEX "constructive_compute_public".platform_compute_log_actor_completed_idx;
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
-- Revert: schemas/constructive_compute_public/tables/platform_compute_log/indexes/idx_db_completed
22

33

4-
DROP INDEX "constructive_compute_public".idx_db_completed;
4+
DROP INDEX "constructive_compute_public".platform_compute_log_db_completed_idx;
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
-- Revert: schemas/constructive_compute_public/tables/platform_compute_log/indexes/idx_task_completed
22

33

4-
DROP INDEX "constructive_compute_public".idx_task_completed;
4+
DROP INDEX "constructive_compute_public".platform_compute_log_task_completed_idx;

pgpm/constructive-compute/revert/schemas/constructive_compute_public/tables/platform_usage_daily/constraints/pk_id.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33

44
ALTER TABLE "constructive_compute_public".platform_usage_daily
5-
DROP CONSTRAINT pk_id;
5+
DROP CONSTRAINT platform_usage_daily_pkey;
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
-- Revert: schemas/constructive_compute_public/tables/platform_usage_daily/indexes/idx_unique_entity_task_date
22

33

4-
DROP INDEX "constructive_compute_public".idx_unique_entity_task_date;
4+
DROP INDEX "constructive_compute_public".platform_usage_daily_entity_task_date_idx;

0 commit comments

Comments
 (0)