We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running seed command `npx ts-node prisma/seed.ts` ... PrismaClientKnownRequestError: Invalid `prisma.organizations.createMany()` invocation in /Users/Adam/Projects/geeffektivt/effekt/effekt-backend/prisma/seed.ts:43:30 40 await prisma.payment.createMany({ data: fakePayments }); 41 await prisma.donors.createMany({ data: fakeDonors }); 42 await prisma.cause_areas.createMany({ data: fakeCauseAreas }); → 43 await prisma.organizations.createMany( Foreign key constraint failed on the field: `cause_area_ID` at Pn.handleRequestError (/Users/Adam/Projects/geeffektivt/effekt/effekt-backend/node_modules/@prisma/client/runtime/library.js:171:6929) at Pn.handleAndLogRequestError (/Users/Adam/Projects/geeffektivt/effekt/effekt-backend/node_modules/@prisma/client/runtime/library.js:171:6358) at Pn.request (/Users/Adam/Projects/geeffektivt/effekt/effekt-backend/node_modules/@prisma/client/runtime/library.js:171:6237) { code: 'P2003', clientVersion: '4.14.0', meta: { field_name: 'cause_area_ID' } }
The text was updated successfully, but these errors were encountered:
adamalfredsson
Successfully merging a pull request may close this issue.
The text was updated successfully, but these errors were encountered: