HomeSoftware Heritage

Split db-init cli in 2 (init and create) and move them under 'swh db'

Description

Split db-init cli in 2 (init and create) and move them under 'swh db'

The idea it to have the 'swh db create' command to create the database
and prepare it by executing SQL -superuser- files, i.e. SQL files which
execution requires superuser permissions -- typically install languages
or extensions.

Then the 'swh db init' execute the initialization SQL files that do not
require superuser permissions.

Also get rid of the previous (unused) 'swh db init' command.

Details

Provenance
douarddaAuthored on Sep 21 2020, 4:25 PM
douarddaPushed on Sep 22 2020, 9:37 AM
Differential Revision
D4000: Split db-init cli in 2 (init and create) and move them under 'swh db'
Parents
rDCOREe5312bdaa865: Reimplement swh_db_version with psycopg2
Branches
Unknown
Tags
Unknown
Build Status
Buildable 15376
Build 23679: test-and-buildJenkins console · Jenkins