uuid_generate_v4() error after the first migration is passed #10912
Labels
bug/0-unknown
Bug is new, does not have information for reproduction or reproduction could not be confirmed.
domain/schema
Issue in the "Schema" domain: Prisma Schema, Introspection, Migrations etc.
kind/bug
A reported bug.
tech/engines
Issue for tech Engines.
topic: postgresql
topic: postgresqlExtensions
topic: prisma migrate dev
CLI: prisma migrate dev
Bug description
Have introspected an existing postgresdb and ran the migration for the first time, to recreate the DB in another instance.
every thing went fine.
Running another migration immediatly after, without changing anything in the schema.prisma file, I got this error
of course the extension
"uuid-ossp"
is installed in the server, otherwise the first migration would have failed.What's wrong ?
I've seen many topics related to this error, but the problem is not that the uuid-ossp extension is not installed.
The problem is that the migration doesn't work although the model hasn't been changed at all
running prisma 3.7
How to reproduce
run the schema below twice
Expected behavior
No response
Prisma information
here the whole schema
Environment & setup
postgres 12, node 16.4
Prisma Version
The text was updated successfully, but these errors were encountered: