datocms / cli

Official CLI to interact with DatoCMS projects!
MIT License
7 stars 7 forks source link

Fix: we should destroy missing resources first, create after #22

Open delphaber opened 6 months ago

delphaber commented 6 months ago

In case a user destroy and recreate a resource, e.g. an item type, with the same api_key, then in the migration we have to make sure to keep the same order (destroy -> create), otherwise we will trigger some uniqueness validations errors

https://3.basecamp.com/5656352/buckets/33592490/card_tables/cards/7069334077