Skip to content
Snippets Groups Projects
Commit 89d48572 authored by David Douard's avatar David Douard
Browse files

Make `swh db init` command work properly with the --dbname option

This allows to run the command `swh db init --dname DBURI` without
giving a configuration file while still populating the dbversion table
in the database.

Note that this may not work for all swh packages, when the postgresql
backend for the given swh package needs more configuration entries than
just the psql connection string.

This more or less drops support for "old style" db sql init scripts:

- the `swh db init` will still work for an 'old style' package (in which
  the sql init scripts do create dbversion table and initialize it) but
  will display an error message,
- the --initial-version option has been dropped, since this made sense
  only for old style packages,
- the test data 'cli_new' has been renamed as 'cli' (in place of the
  previous "old style" one)
parent f05624a3
No related branches found
No related tags found
1 merge request!359Make `swh db init` command work *properly* with the --dbname option
Showing
with 123 additions and 137 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment