Libraries v5.0.0
    Preparing search index...

    Interface AddIndexDiff

    An index to add in a migration.

    interface AddIndexDiff {
        columns: string[];
        name?: string;
        unique?: boolean;
    }
    Index
    columns: string[]

    Physical column names forming the index, in order.

    name?: string

    Optional explicit index name; otherwise migration generation chooses one.

    unique?: boolean

    Whether the new index must enforce uniqueness.