MigrationService

public interface MigrationService

This interface provides method for finding flyway migrations within bundle. Default search location is db/migration.

See also: org.motechproject.mds.jdo.SchemaGenerator, org.motechproject.mds.domain.MigrationMapping

Methods

processBundle

void processBundle(Bundle bundle)

Finds migration files in the given bundle and copy them to the .motech/migration directory. This method also updates migration mapping.

Parameters:
  • bundle – the bundle to process.
Throws:
  • IOException – if an I/O error occurs while copying migration files.