db-create without --drop runs DROP if in --automatic
Reading the --help of db-create, I am lead to believe that if I want to drop an existing database, I have to use --drop
. It seems that using --automatic
also runs the DROP https://forge.extranet.logilab.fr/cubicweb/cubicweb/-/blob/branch/default/cubicweb/server/serverctl.py#L374
I think I got bitten by that bug since we're trying to create databases on the fly on review apps deployments of cubicweb on a kubernetes cluster. I would like for db-create to fail when the database already exists. Or am I using the wrong command ?
Edited by Arthur Lutz