Libraries v5.0.0
    Preparing search index...

    Interface AddForeignKeyDiff

    A foreign key to add in a migration.

    interface AddForeignKeyDiff {
        column: string;
        foreignColumn: string;
        foreignTable: string;
        onDelete?: string;
        onUpdate?: string;
    }
    Index
    column: string

    Referencing SQL column on the table being altered.

    foreignColumn: string

    Referenced SQL column name.

    foreignTable: string

    Referenced table name.

    onDelete?: string

    Optional ON DELETE action.

    onUpdate?: string

    Optional ON UPDATE action.