I have a table called characters. Each character has an enum called "state", which can be "sad" or "happy". How do I add a new state "confused" to my column? I tried this migration but it failed:
migration.describeTable('characters').success(function (attributes) {
migration.changeColumn('characters', 'state',
{
type: DataTypes.ENUM,
values: ['sad', 'happy', 'confused']
})
.complete(done);
});
It complained that error: type "enum_characters_state" already exists.