-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
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
Postgres - Foreign Key Violation #8732
Comments
Thank you @r1tsuu ! |
Fixed in #8737 |
🚀 This is included in version v3.0.0-beta.116 |
@r1tsuu I believe there is another issue related to this somehow. I have a select field inside of a tab group. When loading the component, I get an error saying
Here is how my schema is structured.
|
This issue has been automatically locked. |
Describe the Bug
Originally mentioned in: #6845
I'm encountering a foreign key constraint violation errors when attempting to insert or update an array in a table. This issue seems to be related to foreign key references within the PostgreSQL adapter.
More specifically the path would be:
array.group.select
I think the problem is linked to how activities are grouped within the categories field in our schema. Here is a simplified example of the field setup:
Link to the code that reproduces this issue
https://github.com/ainsleyclark/payload-postgres-bug
Reproduction Steps
Clone Repo for Details
Which area(s) are affected? (Select all that apply)
db-postgres
Environment Info
Binaries:
Node: 21.7.3
npm: 10.8.1
Yarn: 1.22.22
pnpm: 9.7.0
Relevant Packages:
payload: 3.0.0-beta.114
next: 15.0.0-canary.173
@payloadcms/db-postgres: 3.0.0-beta.114
@payloadcms/email-nodemailer: 3.0.0-beta.114
@payloadcms/graphql: 3.0.0-beta.114
@payloadcms/next/utilities: 3.0.0-beta.114
@payloadcms/plugin-cloud: 3.0.0-beta.114
@payloadcms/plugin-cloud-storage: 3.0.0-beta.114
@payloadcms/plugin-seo: 3.0.0-beta.114
@payloadcms/richtext-lexical: 3.0.0-beta.114
@payloadcms/translations: 3.0.0-beta.114
@payloadcms/ui/shared: 3.0.0-beta.114
react: 19.0.0-rc-3edc000d-20240926
react-dom: 19.0.0-rc-3edc000d-20240926
Operating System:
Platform: darwin
Arch: arm64
Version: Darwin Kernel Version 24.0.0: Tue Sep 24 23:37:36 PDT 2024; root:xnu-11215.1.12~1/RELEASE_ARM64_T6020
Available memory (MB): 65536
Available CPU cores: 12
The text was updated successfully, but these errors were encountered: