Skip to main content
Module

x/kysely_deno_postgres_dialect/mod.ts>kysely.MigrationResult

Kysely dialect for PostgreSQL using the deno-postgres client.
Latest
interface kysely.MigrationResult
import { type kysely } from "https://deno.land/x/kysely_deno_postgres_dialect@v0.27.1/mod.ts";
const { MigrationResult } = kysely;

Properties

readonly
migrationName: string
readonly
direction: "Up" | "Down"

The direction in which this migration was executed.

readonly
status: "Success" | "Error" | "NotExecuted"

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.