Migrator
changeTable()
Signature
Section titled “Signature”changeTable() — returns TableDefinition
Available in: migration
Category: Migration Functions
Description
Section titled “Description”Creates a table definition object to store modifications to table properties Only available in a migration CFC
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
name | string | yes | — | Name of the table to set change properties on |
Examples
Section titled “Examples”t = changeTable(name='employees');
t.string(columnNames="fullName", default="", null=true, limit="255");
t.change();