TOSIT-IO / tdp-lib

Python library to configure, manage and deploy TDP
Apache License 2.0
4 stars 8 forks source link

Stephan/refactor/alembic init #602

Open SteBaum opened 5 months ago

SteBaum commented 5 months ago

Which issue(s) this PR fixes

Fixes None

Additional comments

Integrates Alembic in the tdp init command. If the database has already got an alembic_version table with a revision id it upgrades the tables, otherwise it creates them and puts the stamp of the current revision.

This PR includes all initial revision scripts.

Log level has been set to ERROR for the alembic logger so that the user normally does not see them.

Agreements

SteBaum commented 4 months ago

alembic_migration folder and alembic.ini have been moved into the folder tdp so that they are included in the packaging.