Migrator
column()
Signature
Section titled “Signature”column() — returns any
Available in: tabledefinition
Category: Table Definition Functions
Description
Section titled “Description”Adds a column to table definition.
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
columnName | string | yes | — | |
columnType | string | yes | — | |
default | string | no | — | |
allowNull | boolean | no | — | |
limit | any | no | — | |
precision | numeric | no | — | |
scale | numeric | no | — |