I am planning to use Liquibase(https://www.liquibase.org) to manage the migrations/versioning of Oracle database schemas. The project is in Python using setuptools. I have seen also Python wrappers for Liquibase but they don't seem to be well maintained.
Does anyone has experience in the integration of Liquibase in python projects? Or a similar?
Python Java Integrationliquibase calls are executed by LiquibaseCommandLine. execute(liquibaseargs) method by passing given python arguments to java class.
Liquibase tutorial: SummaryAlways add your changesets to a changelog ( don't change anything without Liquibase!) – changeset should be unique combining AUTHOR:ID(task) and filename (file with your changelog) Verify the SQL you will execute ( always run updateSQL before update command). Run database update command.
Are you using SQLAlchemy ? Because there is a tool to manage database migration : Alembic
Alambic is wrapped in another Python Framwework too, like Flask in specific module as Flask-migration.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With