schema "extensions" does not exist' error in shadow DB during initial migration on Neon
When running 'prisma migrate dev', I get this error on my first migration:
'Migration 0_init failed to apply cleanly to the shadow database.
Error: ERROR: schema "extensions" does not exist'
The migration includes 'CREATE EXTENSION IF NOT EXISTS "uuid-ossp" WITH SCHEMA "extensions";'. However, the 'extensions' schema and uuid-ossp extension already exist in my database.
What's causing this shadow database issue, and how can I resolve it without editing existing migrations?
0 Replies