@botonic/plugin-contentful
Version:
Botonic Plugin Contentful is one of the **[available](https://github.com/hubtype/botonic/tree/master/packages)** plugins for Botonic. **[Contentful](http://www.contentful.com)** is a CMS (Content Management System) which manages contents of a great variet
20 lines (15 loc) • 455 B
text/typescript
import Migration, { MigrationContext } from 'contentful-migration'
import {
createFieldKeywords,
createFieldName,
createFieldShortText,
} from '../factories'
function createUrl(migration: Migration) {
const url = migration.createContentType('url')
createFieldName(url, true)
createFieldKeywords(url, true)
createFieldShortText(url, true)
}
module.exports = function (migration: Migration, _: MigrationContext) {
createUrl(migration)
}