website
website copied to clipboard
Adding a column to a table documentation should include alternative syntax
queryInterface.addColumn() does not include alternative syntax for adding the relative schema
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.