I have generated a migration using npx datocms migrations:new --autogenerate my-migration
. The generated migration changes some models in unrelated ways (draft_mode_active: true
and/or all_locales_required: false
).
An excerpt from the migration script looks like this:
console.log('Finalize models/block models')
console.log('Update model "My Model" (`my_model`)')
await client.itemTypes.update('1234', { all_locales_required: false })
console.log('Update model "Other Model" (`other_model`)')
await client.itemTypes.update('1235', {
draft_mode_active: true,
all_locales_required: false,
})
In the primary environment all models have "collection_appearance": "table"
but when I run the migration the new environment have all models set to "collection_appearance": "compact"
.
I’ve tried manually adding "collection_appearance": "table"
to the migration and that works so I’m able to use it as a workaround.