perf: index globals versions timestamps by default (#8821)

This commit is contained in:
Sasha
2024-10-24 21:58:59 +03:00
committed by GitHub
parent 1a15425b59
commit 6e919cc83a
2 changed files with 3 additions and 0 deletions

View File

@@ -71,6 +71,7 @@ export const sanitizeCollection = async (
disableBulkEdit: true,
hidden: true,
},
index: true,
label: ({ t }) => t('general:updatedAt'),
})
}

View File

@@ -20,6 +20,7 @@ export const buildVersionGlobalFields = (
admin: {
disabled: true,
},
index: true,
},
{
name: 'updatedAt',
@@ -27,6 +28,7 @@ export const buildVersionGlobalFields = (
admin: {
disabled: true,
},
index: true,
},
]