Skip to content

Warning on Container Up: "sqlite does not support inserting default values. Set the useNullAsDefault flag to hide this warning." #825

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
johntdavis84 opened this issue Jan 14, 2021 · 1 comment

Comments

@johntdavis84
Copy link

Hello!

I'm getting a non-fatal warning when I bring up the container, using SQLite as the back-end.

sqlite does not support inserting default values. Set the useNullAsDefault flag to hide this warning. (see docs http://knexjs.org/#Builder-insert).

I think this wants me to change something in the config.json, but I can't figure out what. I've read a few docs but everything I've tried so far just keeps the container from launching. ¯_(ツ)_/¯

Here's my config.json:

cat ~/docker/dcomposers/nginx-pm/nginx-proxy-manager/config.json
{
"database": {
"engine": "knex-native",
"knex": {
"client": "sqlite3",
"connection": {
"filename": "/data/mydb.sqlite"
},
"pool": {
"min": 0,
"max": 1,
"createTimeoutMillis": 3000,
"acquireTimeoutMillis": 30000,
"idleTimeoutMillis": 30000,
"reapIntervalMillis": 1000,
"createRetryIntervalMillis": 100,
"propagateCreateError": false
},
"migrations": {
"tableName": "migrations",
"stub": "src/backend/lib/migrate_template.js",
"directory": "src/backend/migrations"
}

I'd appreciate any suggestions. :)

@chaptergy
Copy link
Collaborator

Have a look at #700

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants