From 7a541aa6934586482d07f8aac4f224d5425c38d1 Mon Sep 17 00:00:00 2001 From: Celes Renata Date: Fri, 17 Apr 2026 17:27:41 +0000 Subject: [PATCH] fix: trend_windows.id missing gen_random_uuid() default --- infra/migrations/030_fix_trend_windows_id_default.sql | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 infra/migrations/030_fix_trend_windows_id_default.sql diff --git a/infra/migrations/030_fix_trend_windows_id_default.sql b/infra/migrations/030_fix_trend_windows_id_default.sql new file mode 100644 index 0000000..cf84afb --- /dev/null +++ b/infra/migrations/030_fix_trend_windows_id_default.sql @@ -0,0 +1,4 @@ +-- Fix trend_windows.id default: uuid_generate_v4() requires the uuid-ossp +-- extension which may not be loaded. Switch to gen_random_uuid() which is +-- built-in to PostgreSQL 13+. +ALTER TABLE trend_windows ALTER COLUMN id SET DEFAULT gen_random_uuid();