fix(db-postgres): ensure index names are not too long (#13428)

Fixes https://github.com/payloadcms/payload/issues/13196
This commit is contained in:
Sasha
2025-08-14 02:44:56 +03:00
committed by GitHub
parent c1c68fbb55
commit 047519f47f
5 changed files with 44 additions and 6 deletions

View File

@@ -44,6 +44,39 @@ export const getConfig: () => Partial<Config> = () => ({
type: 'text',
name: 'title',
},
{
type: 'tabs',
tabs: [
{
name: 'hideout',
fields: [
{
label: 'Cameras',
type: 'tabs',
unique: true,
tabs: [
{
name: 'camera1',
fields: [
{
type: 'row',
fields: [
{
name: 'time1Image',
type: 'relationship',
relationTo: 'posts',
unique: true,
},
],
},
],
},
],
},
],
},
],
},
],
},
{