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,
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"id": "80e7a0d2-ffb3-4f22-8597-0442b3ab8102",
|
||||
"id": "fc114c71-8138-46c6-b83a-4d70e79e0ea5",
|
||||
"prevId": "00000000-0000-0000-0000-000000000000",
|
||||
"version": "7",
|
||||
"dialect": "postgresql",
|
||||
@@ -1,9 +1,9 @@
|
||||
import * as migration_20250714_201659 from './20250714_201659.js'
|
||||
import * as migration_20250811_134524 from './20250811_134524.js'
|
||||
|
||||
export const migrations = [
|
||||
{
|
||||
up: migration_20250714_201659.up,
|
||||
down: migration_20250714_201659.down,
|
||||
name: '20250714_201659',
|
||||
up: migration_20250811_134524.up,
|
||||
down: migration_20250811_134524.down,
|
||||
name: '20250811_134524',
|
||||
},
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user