endlessm / azafea

Service to track device activations and usage metrics
Mozilla Public License 2.0
10 stars 2 forks source link

Add DB migrations #59

Closed bochecha closed 4 years ago

bochecha commented 4 years ago

This brings in support for database migrations using Alembic.

This also adds migrations for the various activation, metrics and ping handlers, to create the DB as it currently is created by initdb.

For production, where the DB had already been created, the migrations will do nothing except stamping the database so that Alembic knows later on those have already been done.