diff --git a/tools/src/commands/db/functions/migration-generation/generateContent/structure.ts b/tools/src/commands/db/functions/migration-generation/generateContent/structure.ts index 87f95818d..f4cc7a893 100644 --- a/tools/src/commands/db/functions/migration-generation/generateContent/structure.ts +++ b/tools/src/commands/db/functions/migration-generation/generateContent/structure.ts @@ -37,6 +37,10 @@ async function mapCollectionRelation( delete mapped.created delete mapped.updated + if (mapped.name !== 'users') { + mapped.indexes = [] + } + if (mapped.fields && Array.isArray(mapped.fields)) { mapped.fields = mapped.fields.map(field => { const cleanedField = { ...field }