Files
HealthLog/prisma/migrations/0265_withings_subscription_state/migration.sql
T
Marc-André Bombeck 62eb431d66 release: v1.32.0 — hardening and scalability (#580)
* release: prepare v1.32.0

* test: stabilize water capture re-entry
2026-07-22 04:14:15 +02:00

12 lines
515 B
SQL

ALTER TABLE "withings_connections"
ADD COLUMN "webhook_subscription_state" JSONB,
ADD COLUMN "webhook_subscription_retry_at" TIMESTAMP(3);
-- Existing connections have no durable outcome yet. Mark them due so the
-- hourly repair reconciles each category; status 294 is idempotent success.
UPDATE "withings_connections"
SET "webhook_subscription_retry_at" = CURRENT_TIMESTAMP;
CREATE INDEX "withings_connections_webhook_subscription_retry_at_idx"
ON "withings_connections"("webhook_subscription_retry_at");