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
}
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)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With