Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

fix(migrations): renumber webhook delivery migrations

yushen8614b198165e
diff --git a/server/migrations/175_webhook_delivery_worker.down.sql b/server/migrations/176_webhook_delivery_worker.down.sql
similarity index 100%
rename from server/migrations/175_webhook_delivery_worker.down.sql
rename to server/migrations/176_webhook_delivery_worker.down.sql
diff --git a/server/migrations/175_webhook_delivery_worker.up.sql b/server/migrations/176_webhook_delivery_worker.up.sql
similarity index 57%
rename from server/migrations/175_webhook_delivery_worker.up.sql
rename to server/migrations/176_webhook_delivery_worker.up.sql
index cdcca04729..e69d68adab 100644
--- a/server/migrations/175_webhook_delivery_worker.up.sql
+++ b/server/migrations/176_webhook_delivery_worker.up.sql
@@ -5,10 +5,10 @@
-- already validates the referenced delivery, while avoiding a new FK keeps
-- deploys and rollback independent of existing webhook_delivery cascades.
ALTER TABLE webhook_delivery
- ADD COLUMN available_at TIMESTAMPTZ NOT NULL DEFAULT now(),
- ADD COLUMN lease_token UUID,
- ADD COLUMN lease_expires_at TIMESTAMPTZ,
- ADD COLUMN dispatch_attempts INTEGER NOT NULL DEFAULT 0;
+ ADD COLUMN IF NOT EXISTS available_at TIMESTAMPTZ NOT NULL DEFAULT now(),
+ ADD COLUMN IF NOT EXISTS lease_token UUID,
+ ADD COLUMN IF NOT EXISTS lease_expires_at TIMESTAMPTZ,
+ ADD COLUMN IF NOT EXISTS dispatch_attempts INTEGER NOT NULL DEFAULT 0;
ALTER TABLE autopilot_run
- ADD COLUMN webhook_delivery_id UUID;
+ ADD COLUMN IF NOT EXISTS webhook_delivery_id UUID;
diff --git a/server/migrations/176_autopilot_run_webhook_delivery_index.down.sql b/server/migrations/177_autopilot_run_webhook_delivery_index.down.sql
similarity index 100%
rename from server/migrations/176_autopilot_run_webhook_delivery_index.down.sql
rename to server/migrations/177_autopilot_run_webhook_delivery_index.down.sql
diff --git a/server/migrations/176_autopilot_run_webhook_delivery_index.up.sql b/server/migrations/177_autopilot_run_webhook_delivery_index.up.sql
similarity index 100%
rename from server/migrations/176_autopilot_run_webhook_delivery_index.up.sql
rename to server/migrations/177_autopilot_run_webhook_delivery_index.up.sql
diff --git a/server/migrations/177_webhook_delivery_queue_index.down.sql b/server/migrations/178_webhook_delivery_queue_index.down.sql
similarity index 100%
rename from server/migrations/177_webhook_delivery_queue_index.down.sql
rename to server/migrations/178_webhook_delivery_queue_index.down.sql
diff --git a/server/migrations/177_webhook_delivery_queue_index.up.sql b/server/migrations/178_webhook_delivery_queue_index.up.sql
similarity index 100%
rename from server/migrations/177_webhook_delivery_queue_index.up.sql
rename to server/migrations/178_webhook_delivery_queue_index.up.sql