fix(db-postgres): ensure index names are not too long (#13428)
Fixes https://github.com/payloadcms/payload/issues/13196
This commit is contained in:
@@ -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,
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user