Add a check for db schema version

nipapd should refuse to start if the PostgreSQL db schema version is outdated.

The up-to-date schema version (required to run) is stored inside nipap/\__init__.py
The current schema version is read out of the database comment.

The web-ui ( /version ) will also show the schema version.

Fix for https://github.com/SpriteLink/NIPAP/issues/460


You are right. I don't know anymore why I created a seperate command. I'll let you decide what to do. Probably adding it to -version is cleaner.

Edit: I think the reason is that for nipapd --version, no config file is required. However, for nipapd --dbversion, a config is required.