From 04b7ca4bbd49e9d4e114c659abb3a65c54e3f575 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Thu, 29 Jan 2026 17:58:42 +0000 Subject: [PATCH] fix: remove uuid-ossp extension requirement for RDS compatibility The uuid-ossp extension was created in the first migration but never actually used - the codebase uses gen_random_uuid() which is built-in to PostgreSQL 13+. This allows Windmill to run on AWS RDS where application users may not have CREATE SCHEMA privileges. Co-Authored-By: Claude Opus 4.5 --- backend/windmill-api/src/db.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/backend/windmill-api/src/db.rs b/backend/windmill-api/src/db.rs index a7fda95166..db9a1902f5 100644 --- a/backend/windmill-api/src/db.rs +++ b/backend/windmill-api/src/db.rs @@ -30,7 +30,11 @@ async fn current_database(conn: &mut PgConnection) -> Result = vec![(20221207103910, include_str!( + pub static ref OVERRIDDEN_MIGRATIONS: std::collections::HashMap = vec![(20220123221903, include_str!( + "../../migrations/20220123221903_first.up.sql" + ).replace("create SCHEMA IF NOT exists extensions;", "") + .replace("create extension if not exists \"uuid-ossp\" with schema extensions;", "")), + (20221207103910, include_str!( "../../custom_migrations/create_workspace_without_md5.sql" ).to_string()), (20240216100535, include_str!(