website icon indicating copy to clipboard operation
website copied to clipboard

Adding a column to a table documentation should include alternative syntax

Open jmurphy1196 opened this issue 1 year ago • 0 comments

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.

jmurphy1196 avatar Jun 09 '23 22:06 jmurphy1196