How I can create and run database imgration in Bahmin OpenMRS

I want to add a new table in Bahmin core OpenMRS module (bahmni-core) and add default table data. How Can I create database migration file and how I can run this migration.

Have you checked this? …you can make data model changes through module’s luquibase file. I guess in your case, you’ll have to add the changes in bahmni-core’s liquibase file. …and it’s always good to follow the conventions:slight_smile:

1 Like

As @rubailly mentioned, migrations should go into bahmni-core liquibase file in general. But if the changes are specific to implementation and not necessary that they need to go with the product, one can also choose to add custom migrations in config liquibase file https://github.com/Bahmni/default-config/blob/master/openmrs/migrations/liquibase.xml

Thanks, I get it.