Change8
Error6 reports

Fix DrizzleQueryError

in Payload CMS

Solution

DrizzleQueryError in Payload CMS often arises from attempting to create enum types or tables that already exist in the database during migration. To fix this, carefully review your Drizzle schema and migration files, ensuring you're not creating duplicate enum types or tables. Employ conditional logic within your migrations to first check if the schema element exists before attempting to create it, or use `db.execute` to drop the existing enum/table before recreating it.

Timeline

First reported:Oct 15, 2025
Last reported:Dec 11, 2025

Need More Help?

View the full changelog and migration guides for Payload CMS

View Payload CMS Changelog