Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Liquibase integration in python project

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?

like image 287
Tibor Avatar asked Mar 03 '20 10:03

Tibor


People also ask

Does Liquibase work with Python?

Python Java Integrationliquibase calls are executed by LiquibaseCommandLine. execute(liquibaseargs) method by passing given python arguments to java class.

How do you write a Liquibase script?

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.


1 Answers

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.

like image 152
user1842947 Avatar answered Oct 14 '22 15:10

user1842947