Command line tool - upgrade-database optionΒΆ

This tool will setup from scratch or update to the latest versions the tables and structure in the Postgresql database.

The connection settings should be configured before running it.

python ocdskingfisher-cli upgrade-database

If you want to delete all the existing tables before setting up empty tables, pass the deletefirst flag.

python ocdskingfisher-cli upgrade-database --deletefirst