MigrationResult
interface MigrationResult {
readonly direction: MigrationDirection;
readonly migrationName: string;
readonly status: "Success" | "Error" | "NotExecuted";
}§Properties
§
readonly status: "Success" | "Error" | "NotExecuted"
[src]The execution status.
-
Successmeans 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. -
Errormeans the migration failed. In this case the MigrationResult.error contains the error. -
NotExecutedmeans that the migration was supposed to be executed but wasn't because an earlier migration failed.