Open lrlineroa opened 3 years ago
I just did a fork of the project and then clone, in development work perfectly, I just changed a few things, but in production, i'm still getting the error above. I suggest see what happen
@lrlineroa you can see at my pull request on this repo for not working examples
sorry, I have not see your comments, I'm going to rebuild and make better documentation soon
$ node generator_model.js ======== on query ========== select
KEY_COLUMN_USAGE
. fromKEY_COLUMN_USAGE
whereREFERENCED_COLUMN_NAME
is not null andtable_schema
= "cuploo" ======== on query ========== selectTABLES
. fromTABLES
wheretable_schema
= "cuploo" ======== on query ========== selectCOLUMNS
. fromCOLUMNS
whereCOLUMNS
.TABLE_NAME
in ("knex_migrations", "knex_migrations_lock", "users") andTABLE_SCHEMA
= "cuploo" node:internal/process/promises:218 triggerUncaughtException(err, true / fromPromise */); ^TypeError [ERR_INVALID_CALLBACK]: Callback must be a function. Received undefined at new NodeError (node:internal/errors:258:15) at maybeCallback (node:fs:160:9) at Object.writeFile (node:fs:1435:14) at main (C:\projects\CG\next_projects\cuploo_back\database\generator_model.js:13:12) { code: 'ERR_INVALID_CALLBACK' }
Hi, when I try generate the models from the database, i get this error, any help, thanks