Hitting an error below when running the auto-generated migration script from β@datocms/cliβ: β4.0.28β.
Suspected issue: it tries to remove a block that is used by another model.
The sequence written in the migration script = del block > del model, but it should be del model > block.
Error: DELETE https://site-api.datocms.com/item-types/CyAO43hzTMuSjjhJLx61aQ?skip_menu_items_deletion=true: 422 N/A
[
{
"id": "08f4de",
"type": "api_error",
"attributes": {
"code": "MODULAR_BLOCK_IN_USE",
"details": {
"field_id": "PWLOMgDnRNmxw7J6aW3ZTw",
"item_type_id": "bizK-TefRZKeI3P28amh6A"
},
"doc_url": "https://www.datocms.com/docs/content-management-api/errors#MODULAR_BLOCK_IN_USE"
}
}
]