Postgres module

migration_failure

procedure · 1 overloadsince 0.27.0Source

Where error stopped in the file whole of migration name. statement is the text the server was sent: the whole file, or one statement inside it (a slice of whole) for a migration without a transaction.

migration_failure :: (
    name: string,
    index: s64,
    whole: string,
    statement: string,
    error: Pg_Error
) -> Migration_Failure

Where error stopped in the file whole of migration name. statement is the text the server was sent: the whole file, or one statement inside it (a slice of whole) for a migration without a transaction.

Parameters

name: string
the migration's name.
index: s64
its place in the list, from 0.
whole: string
the migration's file.
statement: string
the text that was sent to the server.
error: Pg_Error
what the server answered.

Returns

See also