deluan / contentful-migrate

🐎 Schema migration tooling for Contentful, with state management
https://www.contentful.com/blog/2018/09/13/content-model-changes-scale-telus-cms-as-code/
MIT License
60 stars 37 forks source link

Update bootstrap to use changeFieldControl #81

Closed jmparsons closed 4 years ago

jmparsons commented 4 years ago

The bootstrap is using the deprecated version changeEditorInterface, new version is called changeFieldControl and takes 3 parameters.

https://github.com/contentful/contentful-migration/blob/master/README.md#changefieldcontrol-fieldid-widgetnamespace-widgetid-settings--void

field.changeEditorInterface('colors', 'radio')

// widgetNamespace : string - "builtin" | "extension"

field.changeFieldControl('colors', 'builtin', 'radio')
deluan commented 4 years ago

Thanks for the report. I'll take a look at this today