Kevin Morris
66189c4460
alembic: restore logging, fix pytest conflicts
...
In this case, when running pytests, we do not allow alembic to
configure loggers.
Signed-off-by: Kevin Morris <kevr@0cost.org>
2021-06-05 19:52:56 -07:00
Kevin Morris
7c65604dad
move off env.py's active code to __name__ == "__main__"
...
* Moved migrations/env.py's logging initialization and migration execution
into a `__name__ == "__main__"` stanza so it doesn't immediately happen
when imported by another module.
Signed-off-by: Kevin Morris <kevr@0cost.org>
2021-06-05 19:50:51 -07:00
Filipe Laíns
8d1be7ea8a
Refactor code to comply with flake8 and isort
...
Signed-off-by: Filipe Laíns <lains@archlinux.org>
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
2021-02-20 11:24:30 -05:00
Frédéric Mangano-Tarumi
a8a1f74a92
Set up Alembic for database migrations
...
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
2020-02-27 16:44:36 +01:00