Skip to Content

IConfigMigrationDefinition

Interface describing a migration definition (up / down).

Defined in: src/modules/config/migration/interface/migration-definition.interface.ts

NameTypeDefault
descriptionstring

Description of what this migration does

down(configService: CrudConfigService, entityManager?: EntityManager | undefined) => Promise<void>

Optional rollback function (for future use)

namestring

Unique name of the migration (should be sortable, e.g., “001_initial_config”)

up(configService: CrudConfigService, entityManager?: EntityManager | undefined) => Promise<void>

The migration function that will be executed

Last updated on