Skip to content

Adding a column to a table documentation should include alternative syntax #493

@jmurphy1196

Description

@jmurphy1196

queryInterface.addColumn() does not include alternative syntax for adding the relative schema

image

As you can see from the above image the docs only state one form of syntax that .addColumn() can take. Alternatively the function can take in a syntax that looks like this :

queryInterface.addColumn({tableName: 'nameOfTable', schema: 'nameOfSchema'}, 'nameOfColumn', { // attribute properties };

this syntax is important for specifying the schema you are referring to.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions