dhe128
dhe128
Explore posts from servers
PPrisma
Created by dhe128 on 8/24/2024 in #help-and-questions
Error: P3005 The database schema is not empty.
I expect that command to generate an empty migration if the schemas in db are empty. Maybe I'm misunderstanding what it does?
9 replies
PPrisma
Created by dhe128 on 8/24/2024 in #help-and-questions
Error: P3005 The database schema is not empty.
Maybe it's a caching issue?
npx prisma migrate diff \
--from-empty \
--to-schema-datamodel prisma/schema.prisma \
--script > prisma/migrations/0_init/migration.sql
npx prisma migrate diff \
--from-empty \
--to-schema-datamodel prisma/schema.prisma \
--script > prisma/migrations/0_init/migration.sql
generates a full initial migration even though the schema in db is initially empty
9 replies
PPrisma
Created by dhe128 on 8/24/2024 in #help-and-questions
Error: P3005 The database schema is not empty.
I'm connecting with a connection string - datasource db has both url and directUrl
9 replies
PPrisma
Created by dhe128 on 8/24/2024 in #help-and-questions
Error: P3005 The database schema is not empty.
so not touching auth storage or public
9 replies
PPrisma
Created by dhe128 on 8/24/2024 in #help-and-questions
Error: P3005 The database schema is not empty.
I'm using multischema, and datasource db.schemas doesn't touch any existing schemas
9 replies
PPrisma
Created by dhe128 on 8/24/2024 in #help-and-questions
Error: P3005 The database schema is not empty.
yes
9 replies