You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ node generator_model.js
======== on query ==========
select KEY_COLUMN_USAGE.* from KEY_COLUMN_USAGE where REFERENCED_COLUMN_NAME is not null and table_schema = "cuploo"
======== on query ==========
select TABLES.* from TABLES where table_schema = "cuploo"
======== on query ==========
select COLUMNS.* from COLUMNS where COLUMNS.TABLE_NAME in ("knex_migrations", "knex_migrations_lock", "users") and TABLE_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
The text was updated successfully, but these errors were encountered:
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
$ node generator_model.js
======== on query ==========
select
KEY_COLUMN_USAGE
.* fromKEY_COLUMN_USAGE
whereREFERENCED_COLUMN_NAME
is not null andtable_schema
= "cuploo"======== on query ==========
select
TABLES
.* fromTABLES
wheretable_schema
= "cuploo"======== on query ==========
select
COLUMNS
.* 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
The text was updated successfully, but these errors were encountered: