Reputation: 61
I'm trying to run the command to create the migration on sequelize, on my SQL Server database, and I get the following error:
ERROR: ARRAY is missing type definition for its values
In the js file that was created is the definition:
images: {
type: Sequelize.ARRAY
}
Upvotes: 6
Views: 8814
Reputation: 227
After having the same problem myself, I've solved it by changing both model and migration files. They should be like this:
migration file:
images: {
type: Sequelize.ARRAY(Sequelize.INTEGER)
}
model file:
images: DataTypes.ARRAY(DataTypes.INTEGER)
Upvotes: 17