Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jmurphy1196 opened this issue Jun 9, 2023 · 0 comments

Comments

@jmurphy1196
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant