# Functions
Add adds a migration to the list of migrations to run at API start time example of usage:
migrate.Add(sdk.Migration{Name: "MyMigration", Release: "0.39.3", Mandatory: true, ExecFunc: func(ctx context.Context) error { return migrate.MyMigration(ctx, a.Cache, a.DBConnectionFactory.GetDBMap) }}).
Delete migration in database.
GetAll returns the migration for given name.
GetByName returns the migration for given name.
Insert migration in database.
Run run all local migrations.
SaveAllMigrations save all local migrations marked to "done" into database (in case of a fresh installation).
Status returns monitoring status, if there are cds migration in progress it returns WARN.
Update migration in database.
UpdateStatus update the status of a migration given its id.
# Constants
MinCompatibleRelease represent the minimum release which is working with these migrations, need to update when we delete migration in our codebase.