VForWaTer / metacatalog

Modular metadata management platform for environmental data.
https://vforwater.github.io/metacatalog
GNU General Public License v3.0
3 stars 1 forks source link

Check Database version on startup #32

Closed mmaelicke closed 4 years ago

mmaelicke commented 4 years ago

Whenever creating a connection to the database, the content of alembic_version table should be checked against the revisions present in the current metacatalog repo. Two kind of warnings can be raised:

  1. metacatalog has a newer revision and warns the user that the DB needs an upgrade
  2. metactaalog can't find the DB revision because metacatalog itself is outdated