ZeusWPI / Tap

:beer: Yes. We have to drink. But we also have to pay. This does the drinking part.
https://tap.zeus.gent
1 stars 5 forks source link

Fix saved DB schema being inconsistent with migrations #195

Closed chvp closed 2 years ago

chvp commented 2 years ago

Generating the DB schema from the migrations resulted in a different schema than the one currently in the repo. Generally, one shouldn't rerun all the migrations but in this case the schema in the repo is also different from the one used in production.

The different schema resulted in a few tests failing, due to null constraints that were added not being used correctly.

This PR updates both the schema to be consistent with what is used in production and updates the tests so that they don't fail due to these added constraints. (It also fixes a linting error added recently.)