Warn user if database details are missing configuration
For example, in production, the default config pubsweet-starter
is supplied with is:
'pubsweet-server': {
db: {},
}
If you try to setupdb
with the above config, we'll say that a db already exists and that you should use --clobber
. If you do that, it results in wanting to DROP TABLE user
, which is the table that exists in the database automatically created for you by pg. This database is automatically connected to when more specific configuration is missing, which is something we don't want.