From 4c4ccabf3c31b490ca9148e05a3823e6847450c5 Mon Sep 17 00:00:00 2001 From: Bryan Frimin Date: Tue, 14 Oct 2025 15:28:47 +0200 Subject: [PATCH] Remove default Signed-off-by: Bryan Frimin --- pkg/coredata/migrations/20251014T120000Z.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/coredata/migrations/20251014T120000Z.sql b/pkg/coredata/migrations/20251014T120000Z.sql index f5fa07c7c..6eaea397c 100644 --- a/pkg/coredata/migrations/20251014T120000Z.sql +++ b/pkg/coredata/migrations/20251014T120000Z.sql @@ -1,8 +1,8 @@ --- Add retry tracking fields for SSL certificate provisioning ALTER TABLE custom_domains ADD COLUMN ssl_retry_count INTEGER NOT NULL DEFAULT 0; ALTER TABLE custom_domains ADD COLUMN ssl_last_attempt_at TIMESTAMP; --- Add index to efficiently find stale provisioning attempts +ALTER TABLE custom_domains ALTER COLUMN ssl_retry_count DROP DEFAULT; + CREATE INDEX idx_custom_domains_ssl_last_attempt ON custom_domains(ssl_last_attempt_at, ssl_status) WHERE ssl_status IN ('PENDING', 'PROVISIONING', 'RENEWING');