Comments (3)
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.
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.
Awesome thank you :)
from contentful-migrate.
Related Issues (20)
- Support new "environments" feature from Contentful
- Bootstrap generates scripts with deprecated changeEditorInterface method HOT 2
- Using lib directly
- Could we update the contentful-migration dependency? HOT 4
- Bootstrap does not create the right scripts for the field with custom UI extensions.
- Migration scripts run order independent of content type HOT 2
- migration created via bootstrap needs to account for dash in content type id HOT 1
- Allow custom sort function when using as a library
- Bug when adding `defaultValue` to a field and widget to the sidebar
- Importing Compose migrations: 'A field can't have "relationshipType" as a validation.'
- Support newer version of `contentful-migration` HOT 3
- Bootstrap script fails. eslint config not found HOT 9
- Support regular contentful-migrations migration syntax
- ctf-migrate bootstrap: Scripts generation contents is undefined HOT 2
- Typescript migrations HOT 10
- Feature request - typescript ts file support HOT 1
- Bootstrap issue HOT 1
- Update bootstrap to use changeFieldControl HOT 1
- Getting failed dependency from BaseConfig HOT 15
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from contentful-migrate.