Created
September 22, 2014 14:36
-
-
Save torkelo/9a57ece203d56f607e9b to your computer and use it in GitHub Desktop.
Schema change issue
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Old schema | |
pulldowns: [ | |
{ | |
type: 'filtering', | |
enable: true | |
}, | |
{ | |
type: 'annotations', | |
enable: true, | |
annotations: [{name: 'old'}] | |
} | |
], | |
// new schema | |
annotations: { | |
list: [ {name: 'old'} ] | |
} | |
// if you have something like this in your ES you will get the error | |
pulldowns: [ | |
{ | |
type: 'annotations', | |
enable: true, | |
} | |
], | |
See the missing annotations: [] array. When the schema upgrades to the new schema the annoatations.list will be undefined. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment