Unhandled rejection TypeError: this._length.toLowerCase is not a function
at TEXT.toSql (C:\Project\wxApi\APIforDoctorWorkstation\node_modules\sequeli
ze\lib\data-types.js:93:24)
at TEXT.toString (C:\Project\wxApi\APIforDoctorWorkstation\node_modules\sequ
elize\lib\data-types.js:19:15)
at Object.attributeToSQL (C:\Project\wxApi\APIforDoctorWorkstation\node_modu
les\sequelize\lib\dialects\mysql\query-generator.js:320:44)
at Object.attributesToSQL (C:\Project\wxApi\APIforDoctorWorkstation\node_mod
ules\sequelize\lib\dialects\mysql\query-generator.js:385:45)
at QueryInterface.createTable (C:\Project\wxApi\APIforDoctorWorkstation\node
_modules\sequelize\lib\query-interface.js:274:40)
at Promise.try.then.then (C:\Project\wxApi\APIforDoctorWorkstation\node_modu
les\sequelize\lib\model.js:1128:39)
at tryCatcher (C:\Project\wxApi\APIforDoctorWorkstation\node_modules\bluebir
d\js\release\util.js:16:23)
at Promise._settlePromiseFromHandler (C:\Project\wxApi\APIforDoctorWorkstati
on\node_modules\bluebird\js\release\promise.js:512:31)
at Promise._settlePromise (C:\Project\wxApi\APIforDoctorWorkstation\node_mod
ules\bluebird\js\release\promise.js:569:18)
at Promise._settlePromise0 (C:\Project\wxApi\APIforDoctorWorkstation\node_mo
dules\bluebird\js\release\promise.js:614:10)
at Promise._settlePromises (C:\Project\wxApi\APIforDoctorWorkstation\node_mo
dules\bluebird\js\release\promise.js:693:18)
at Async._drainQueue (C:\Project\wxApi\APIforDoctorWorkstation\node_modules
bluebird\js\release\async.js:133:16)
at Async._drainQueues (C:\Project\wxApi\APIforDoctorWorkstation\node_modules
\bluebird\js\release\async.js:143:10)
at Immediate.Async.drainQueues (C:\Project\wxApi\APIforDoctorWorkstation\nod
e_modules\bluebird\js\release\async.js:17:14)
at runCallback (timers.js:810:20)
at tryOnImmediate (timers.js:768:5)
at processImmediate [as _immediateCallback] (timers.js:745:5)
传一个不正确的查询会报错
看一下你怎么查的