mirror of
https://github.com/strapi/strapi.git
synced 2025-11-12 16:22:10 +00:00
add indexes for sortable columns of files
This commit is contained in:
parent
95ec21cb55
commit
daf30921f0
@ -108,5 +108,30 @@ module.exports = {
|
|||||||
columns: ['folder_path'],
|
columns: ['folder_path'],
|
||||||
type: null,
|
type: null,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: `upload_files_created_at_index`,
|
||||||
|
columns: ['created_at'],
|
||||||
|
type: null,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: `upload_files_updated_at_index`,
|
||||||
|
columns: ['updated_at'],
|
||||||
|
type: null,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: `upload_files_name_index`,
|
||||||
|
columns: ['name'],
|
||||||
|
type: null,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: `upload_files_size_index`,
|
||||||
|
columns: ['size'],
|
||||||
|
type: null,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: `upload_files_ext_index`,
|
||||||
|
columns: ['ext'],
|
||||||
|
type: null,
|
||||||
|
},
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user