Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

MigrationResult

interface MigrationResult {
readonly direction: MigrationDirection;
readonly migrationName: string;
readonly status: "Success" | "Error" | "NotExecuted";
}

§Properties

§
readonly direction: MigrationDirection
[src]

The direction in which this migration was executed.

§
readonly migrationName: string
[src]
§
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 status Error) 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.