postgresql - Knex migration not working, whats wrong? -
I can not migrate the database with knex up command, it fails.
knex.migrate.latest ({}) end (function () {knex.destroy ()})
Probably special type error: Undefined schemabullder dgg aim. Then there is no function on (CWD / node_module / knox / lib / interface.js: 25:10) schemabuilder dgg. Goal (anonymous function) [as bind] (cwd / node_modules / knex / lib / interface.js: 71: 21) on Migrator_PG & Lt; Anonymous & gt; (Cwd / node_modules / knex / lib / migrate / index.js: 93: 6) on Migrator_PG. & Lt; Anonymous & gt; On Migrator_PG & amp; Lt; Anonymous & gt; (Cwd / node_modules / knex / lib / migrate / index.js: 138: 15) on Migrator_PG.migrator._migrationData (cwd / node_modules / knex / lib / migrate / index.js: 154: 10). ; (Cwd / node_modules / knex / lib / migrate / index.js: 22:15) From the previous event: On the function. Promois $ All [at all] on (cwd / node_modules / knex / node_modules / bluebird / js / main / promise Migrator_PG.migrator._migrationData (cwd / node_modules / knex / lib / migrate / index.js: 152: 18) Migrator_PG. & Lt; anonymous & gt; (Cwd / node_modules / knex / lib / migrate / index.js: 22: 15)
I swear that it was working yesterday I do not have any luck trying to leave the database and rebuild. What's wrong? How can I fix this?
There is no clear digging in some excavation sources.
No problem, bay Kufi was not set was. Trying to use an environment variable configuration.
var knex = require ( 'knex') var config = {client: 'pg ', Connection: process.env.DATABASE_URL,} module.exports = knex (config)
is now working.
Comments
Post a Comment