Class AlterTableBuilder

This builder can be used to create a alter table query.

Hierarchy

  • AlterTableBuilder

Implements

Constructors

Methods

  • See addForeignKeyConstraint

    Unlike addForeignKeyConstraint this method returns the constraint builder and doesn't take a callback as the last argument. This is because you can only add one column per ALTER TABLE query.

    Parameters

    • constraintName: string
    • columns: string[]
    • targetTable: string
    • targetColumns: string[]

    Returns AlterTableAddForeignKeyConstraintBuilder

Generated using TypeDoc