MigrationResult
interface MigrationResult {
readonly direction: MigrationDirection;
readonly migrationName: string;
readonly status: "Success" | "Error" | "NotExecuted";
}§Properties
§
readonly status: "Success" | "Error" | "NotExecuted"
[src]The execution status.
-
Success
means the migration was successfully executed. Note that if any of the later migrations in the MigrationResult.results list failed (have statusError
) AND the dialect supports transactional DDL, even the successfull migrations were rolled back. -
Error
means the migration failed. In this case the MigrationResult.error contains the error. -
NotExecuted
means that the migration was supposed to be executed but wasn't because an earlier migration failed.