O rodar o comando "npx sequelize-cli db:migrate" - AULA 02.07 dá o erro abaixo: PS C:\PROGRAMACAO\Node.js\ORM com NodeJS\orm-sequelize> npx sequelize-cli db:migrate
Sequelize CLI [Node: 12.18.3, CLI: 6.2.0, ORM: 6.3.5]
Loaded configuration file "api\config\config.json". Using environment "development". (node:10620) [SEQUELIZE0004] DeprecationWarning: A boolean value was passed to options.operatorsAliases. This is a no-op with v5 and should be removed. internal/crypto/hash.js:82 throw new ERR_INVALID_ARG_TYPE('data', ^
TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received type number (123456)... NodeJS\orm-sequelize\node_modules\mysql2\lib\connection.js:82:25) at Socket.emit (events.js:315:20) at addChunk (streamreadable.js:295:12) at readableAddChunk (streamreadable.js:271:9) at Socket.Readable.push (streamreadable.js:212:10) at TCP.onStreamRead (internal/stream_base_commons.js:186:23) { code: 'ERR_INVALID_ARG_TYPE' }
{
"name": "orm-sequelize",
"version": "1.0.0",
"description": "",
"main": "./api/index.js",
"scripts": {
"start": "nodemon ./api/index.js",
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"body-parser": "^1.19.0",
"express": "^4.17.1",
"mysql2": "^2.2.5",
"path": "^0.12.7",
"sequelize": "^6.3.5",
"sequelize-cli": "^6.2.0"
},
"devDependencies": {
"nodemon": "^2.0.6"
}
}