Solucionado (ver solução)
Solucionado
(ver solução)
1
resposta

Sequelize CLI [Node: 14.17.0, CLI: 6.2.0, ORM: 6.6.2] Loaded configuration file "config/config.json". Using environment "development". == 20210614141523-addcolumn-matriculas: migrating ======= ERROR: Cannot read property 'toString' of undefined

Quando tento executar o comando

npx sequelize-cli db:migrate

Recebo a mensagem de erro

Sequelize CLI [Node: 14.17.0, CLI: 6.2.0, ORM: 6.6.2]

Loaded configuration file "config/config.json".
Using environment "development".
== 20210614141523-addcolumn-matriculas: migrating =======

ERROR: Cannot read property 'toString' of undefined

Segue meu arquivo config

{
  "development": {
    "username": "root",
    "password": "123456",
    "database": "escola_ingles",
    "host": "127.0.0.1",
    "dialect": "mysql",
    "operatorsAliases": false
  },
  "test": {
    "username": "root",
    "password": null,
    "database": "database_test",
    "host": "127.0.0.1",
    "dialect": "mysql",
    "operatorsAliases": false
  },
  "production": {
    "username": "root",
    "password": null,
    "database": "database_production",
    "host": "127.0.0.1",
    "dialect": "mysql",
    "operatorsAliases": false
  }
}
1 resposta
solução!

O erro estava nos arquivos de migrations addcolumn

Na linha type: Sequelize.DATE eu tinha informado type: Sequelize.DATE