不要怂,就是干,撸起袖子干!

Commit f4982c10 by Jan Aagaard Meier

[ci skip] docs(migrations) Show that the type argument to changeColumn must be w…

…rapped in { type: .. }. Closes #3999
1 parent 425ad078
Showing with 2 additions and 10 deletions
......@@ -205,17 +205,9 @@ queryInterface.removeColumn('Person', 'signature')
### changeColumn(tableName, attributeName, dataTypeOrOptions, options)
This method changes the meta data of an attribute. It is possible to change the default value, allowance of null or the data type. Please make sure, that you are completely describing the new data type. Missing information are expected to be defaults.
This method changes the meta data of an attribute. It is possible to change the default value, allowance of null or the data type. Please make sure, that you are completely describing the new data type.
```js
queryInterface.changeColumn(
'nameOfAnExistingTable',
'nameOfAnExistingAttribute',
Sequelize.STRING
)
 
// or
 
```js 
queryInterface.changeColumn(
'nameOfAnExistingTable',
'nameOfAnExistingAttribute',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!