Set up alembic migration usage (#954)

* Set up alembic migration usage

* Fix import order, add isort as alembic hook

* Only run migrations if needed

* Include date as part of migration file name for better sorting

* Skip initial migrations if tables already exist
This eases the transition from a pre-alembic state

* Fix deprecation warning in alembic revision

* Add alembic test stubs
This commit is contained in:
Philipp Fischbeck
2022-02-21 21:44:23 +01:00
committed by GitHub
parent a897e180ed
commit fdfb5b1a5e
14 changed files with 1197 additions and 25 deletions

1
alembic/README Normal file
View File

@@ -0,0 +1 @@
Generic single-database configuration.