Skip to content

Instantly share code, notes, and snippets.

@jellologic
jellologic / @payloadcms__db-vercel-postgres@3.69.0.patch
Created January 1, 2026 02:48
Payload CMS PostgreSQL enum migration fix - DROP/RECREATE pattern
--- /tmp/orig-pkg/package/dist/index.js 1985-10-26 08:15:00.000000000 +0000
+++ node_modules/@payloadcms/db-vercel-postgres/dist/index.js 2026-01-01 02:37:16.302326594 +0000
@@ -5,6 +5,237 @@
import { fileURLToPath } from 'url';
import { connect } from './connect.js';
const filename = fileURLToPath(import.meta.url);
+
+/**
+ * Custom sanitizeStatements that handles enum ADD VALUE safely.
+ *