We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
dbName
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
After upgrading version from 3.33.0 to 3.34.0 deeply nested array fields stopped working. Error happens on Postgres, haven't checked other databases.
import type { GlobalConfig } from 'payload'; export const Header: GlobalConfig = { slug: 'header', fields: [ { name: 'itemsLvl1', type: 'array', dbName: 'header_items_lvl1', fields: [ { name: 'label', type: 'text', }, { name: 'itemsLvl2', type: 'array', dbName: 'header_items_lvl2', fields: [ { name: 'label', type: 'text', }, { name: 'itemsLvl3', type: 'array', dbName: 'header_items_lvl3', fields: [ { name: 'label', type: 'text', }, { name: 'itemsLvl4', type: 'array', dbName: 'header_items_lvl4', fields: [ { name: 'label', type: 'text', }, ], }, ], }, ], }, ], }, ], }
Error:
error: table name "header__header_items_lvl1__header_items_lvl2__header_items_lvl3" specified more than once
When i change version to 3.33.0 or i remove 2 last levels it starts to work again.
Might be related to #11995.
https://github.com/Rymar/payload-deep-dbname
Open home page from linked repo. It makes
await payload.findGlobal({ slug: "header", });
result
db-postgres
Payload 3.34.0 Next 15.3.0 Postgres database
The text was updated successfully, but these errors were encountered:
r1tsuu
Successfully merging a pull request may close this issue.
Describe the Bug
After upgrading version from 3.33.0 to 3.34.0 deeply nested array fields stopped working. Error happens on Postgres, haven't checked other databases.
Error:
When i change version to 3.33.0 or i remove 2 last levels it starts to work again.
Might be related to #11995.
Link to the code that reproduces this issue
https://github.com/Rymar/payload-deep-dbname
Reproduction Steps
Open home page from linked repo. It makes
result

Which area(s) are affected? (Select all that apply)
db-postgres
Environment Info
The text was updated successfully, but these errors were encountered: