Skip to content

Migrator

changeTable()

changeTable() — returns TableDefinition

Available in: migration Category: Migration Functions

Creates a table definition object to store modifications to table properties Only available in a migration CFC

NameTypeRequiredDefaultDescription
namestringyesName of the table to set change properties on
t = changeTable(name='employees');
t.string(columnNames="fullName", default="", null=true, limit="255");
t.change();