GithubHelp home page GithubHelp logo

Comments (3)

deluan avatar deluan commented on May 18, 2024

Hey, thanks for the report. I tested it here but I cannot reproduce the issue. How are you calling the ctf-migrate command? Here is what I get when running an invalid migration:

$ ctf-migrate -s qqxhciuzx3io -e master list -c headline
Listing headline
  [2018-06-13 15:06:12] 20180613190106-create-headline.js : Create content model for Headline
  [pending]             20180821151031-test-delete-invalid-field.js : Test issue 20
$ echo $?
0
$ ctf-migrate -s qqxhciuzx3io -e master up -c headline
Processing headline
  up : 20180821151031-test-delete-invalid-field.js
Validation failed


Errors in /Users/deluan/TW/test/migrations/headline/20180821151031-test-delete-invalid-field.js

Line 6: Field with id "invalidField" cannot be deleted because it does not exist.
 4:   const flowConfiguration = migration.editContentType('headline');
 5:
 6:   flowConfiguration.deleteField('invalidField');
 7: };
 8:

🚨  Migration unsuccessful
$ echo $?
1

from contentful-migrate.

deluan avatar deluan commented on May 18, 2024

Forget about my last comment, reading more carefully your message, I was able to reproduce the error (using an invalid contentTypeId), and pushed a fix for it. Fixed in version 0.6.1

from contentful-migrate.

sheakelly avatar sheakelly commented on May 18, 2024

Awesome thank you :)

from contentful-migrate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.