Sha256: e8170668c7481158d4804ff1425450b4dcde5929308e9c45bb88bc04a33bd88d

Contents?: true

Size: 1.71 KB

Versions: 32

Compression:

Stored size: 1.71 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-marquee-text  ******************/

  var sectionMarqueeText = migration.createContentType('section-marquee-text', {
    displayField: 'internalTitle',
    name: 'Section: Marquee Text',
    description: 'Display a large section title and an enlarged single paragraph along with an optional tagline at the top.'
  })

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

  sectionMarqueeText.createField('tag', {
    name: 'Tag',
    type: 'Symbol',
    localized: true,
    required: false,
    validations: [{ size: { min: 0, max: 50 } }],
    disabled: false,
    omitted: false
  })

  sectionMarqueeText.createField('title', {
    name: 'Title',
    type: 'Symbol',
    localized: true,
    required: true,
    validations: [{ size: { min: 0, max: 150 } }],
    disabled: false,
    omitted: false
  })

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

  sectionMarqueeText.changeEditorInterface('tag', 'singleLine')

  sectionMarqueeText.changeEditorInterface('title', 'singleLine')

  sectionMarqueeText.changeEditorInterface('body', 'multipleLine')

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

} 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-marquee-text/migrations/generated_add_section-marquee-texts.ts
wcc-contentful-app-1.7.0 lib/generators/wcc/templates/section-marquee-text/migrations/generated_add_section-marquee-texts.ts
wcc-contentful-app-1.6.2 lib/generators/wcc/templates/section-marquee-text/migrations/generated_add_section-marquee-texts.ts
wcc-contentful-app-1.6.1 lib/generators/wcc/templates/section-marquee-text/migrations/generated_add_section-marquee-texts.ts
wcc-contentful-app-1.6.0 lib/generators/wcc/templates/section-marquee-text/migrations/generated_add_section-marquee-texts.ts
wcc-contentful-app-1.5.1 lib/generators/wcc/templates/section-marquee-text/migrations/generated_add_section-marquee-texts.ts
wcc-contentful-app-1.5.0 lib/generators/wcc/templates/section-marquee-text/migrations/generated_add_section-marquee-texts.ts
wcc-contentful-app-1.5.0.rc1 lib/generators/wcc/templates/section-marquee-text/migrations/generated_add_section-marquee-texts.ts
wcc-contentful-app-1.4.0 lib/generators/wcc/templates/section-marquee-text/migrations/generated_add_section-marquee-texts.ts
wcc-contentful-app-1.4.0.rc3 lib/generators/wcc/templates/section-marquee-text/migrations/generated_add_section-marquee-texts.ts
wcc-contentful-app-1.4.0.rc2 lib/generators/wcc/templates/section-marquee-text/migrations/generated_add_section-marquee-texts.ts
wcc-contentful-app-1.3.2 lib/generators/wcc/templates/section-marquee-text/migrations/generated_add_section-marquee-texts.ts
wcc-contentful-app-1.4.0.rc1 lib/generators/wcc/templates/section-marquee-text/migrations/generated_add_section-marquee-texts.ts
wcc-contentful-app-1.3.1 lib/generators/wcc/templates/section-marquee-text/migrations/generated_add_section-marquee-texts.ts
wcc-contentful-app-1.3.0 lib/generators/wcc/templates/section-marquee-text/migrations/generated_add_section-marquee-texts.ts
wcc-contentful-app-1.2.1 lib/generators/wcc/templates/section-marquee-text/migrations/generated_add_section-marquee-texts.ts
wcc-contentful-app-1.2.0 lib/generators/wcc/templates/section-marquee-text/migrations/generated_add_section-marquee-texts.ts
wcc-contentful-app-1.1.2 lib/generators/wcc/templates/section-marquee-text/migrations/generated_add_section-marquee-texts.ts
wcc-contentful-app-1.1.1 lib/generators/wcc/templates/section-marquee-text/migrations/generated_add_section-marquee-texts.ts
wcc-contentful-app-1.1.0 lib/generators/wcc/templates/section-marquee-text/migrations/generated_add_section-marquee-texts.ts