Sha256: d7ad8c9eeab7a90b00da2bf4cbeb142e92633f58a4e1306233c83c489951f5f3

Contents?: true

Size: 1.05 KB

Versions: 32

Compression:

Stored size: 1.05 KB

Contents

import Migration, { MigrationFunction } from '@watermarkchurch/contentful-migration'

// Generated by contentful-schema-diff
// from empty-export.json
// to   7yx6ovlj39n5
export = function(migration : Migration, { makeRequest, spaceId, accessToken }) {

  /************  section-block-text  ******************/

  var sectionBlockText = migration.createContentType('section-block-text', {
    displayField: 'internalTitle',
    name: 'Section: Block Text',
    description: 'Markdown free-text block'
  })

  sectionBlockText.createField('internalTitle', {
    name: 'Internal Title (Contentful Only)',
    type: 'Symbol',
    localized: false,
    required: true,
    validations: [],
    disabled: false,
    omitted: true
  })

  sectionBlockText.createField('body', {
    name: 'Body',
    type: 'Text',
    localized: false,
    required: true,
    validations: [],
    disabled: false,
    omitted: false
  })

  sectionBlockText.changeEditorInterface('internalTitle', 'singleLine')

  sectionBlockText.changeEditorInterface('body', 'markdown')

} as MigrationFunction

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
wcc-contentful-app-1.7.1 lib/generators/wcc/templates/section-block-text/migrations/generated_add_section-block-texts.ts
wcc-contentful-app-1.7.0 lib/generators/wcc/templates/section-block-text/migrations/generated_add_section-block-texts.ts
wcc-contentful-app-1.6.2 lib/generators/wcc/templates/section-block-text/migrations/generated_add_section-block-texts.ts
wcc-contentful-app-1.6.1 lib/generators/wcc/templates/section-block-text/migrations/generated_add_section-block-texts.ts
wcc-contentful-app-1.6.0 lib/generators/wcc/templates/section-block-text/migrations/generated_add_section-block-texts.ts
wcc-contentful-app-1.5.1 lib/generators/wcc/templates/section-block-text/migrations/generated_add_section-block-texts.ts
wcc-contentful-app-1.5.0 lib/generators/wcc/templates/section-block-text/migrations/generated_add_section-block-texts.ts
wcc-contentful-app-1.5.0.rc1 lib/generators/wcc/templates/section-block-text/migrations/generated_add_section-block-texts.ts
wcc-contentful-app-1.4.0 lib/generators/wcc/templates/section-block-text/migrations/generated_add_section-block-texts.ts
wcc-contentful-app-1.4.0.rc3 lib/generators/wcc/templates/section-block-text/migrations/generated_add_section-block-texts.ts
wcc-contentful-app-1.4.0.rc2 lib/generators/wcc/templates/section-block-text/migrations/generated_add_section-block-texts.ts
wcc-contentful-app-1.3.2 lib/generators/wcc/templates/section-block-text/migrations/generated_add_section-block-texts.ts
wcc-contentful-app-1.4.0.rc1 lib/generators/wcc/templates/section-block-text/migrations/generated_add_section-block-texts.ts
wcc-contentful-app-1.3.1 lib/generators/wcc/templates/section-block-text/migrations/generated_add_section-block-texts.ts
wcc-contentful-app-1.3.0 lib/generators/wcc/templates/section-block-text/migrations/generated_add_section-block-texts.ts
wcc-contentful-app-1.2.1 lib/generators/wcc/templates/section-block-text/migrations/generated_add_section-block-texts.ts
wcc-contentful-app-1.2.0 lib/generators/wcc/templates/section-block-text/migrations/generated_add_section-block-texts.ts
wcc-contentful-app-1.1.2 lib/generators/wcc/templates/section-block-text/migrations/generated_add_section-block-texts.ts
wcc-contentful-app-1.1.1 lib/generators/wcc/templates/section-block-text/migrations/generated_add_section-block-texts.ts
wcc-contentful-app-1.1.0 lib/generators/wcc/templates/section-block-text/migrations/generated_add_section-block-texts.ts