Run multiple content ful migration
See https://www.contentful.com/developers/docs/tutorials/cli/scripting-migrations/
Api Docs https://github.com/contentful/contentful-migration/blob/master/README.md#reference-documentation
Add migration function to migrations directory following the naming convention. ##-task-name.ts
import Migration from 'contentful-migration';
export default function (migration: Migration) {
const model = migration.createContentType('fish', {
name: 'Fish'
});
model.createField('name')
.name('Name')
.type('Symbol')
.required(true);
}
npm install
npm run migrate
npm run cleanup