Skip to content

Migrator

createTable()

createTable() — returns TableDefinition

Available in: migration Category: Migration Functions

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

NameTypeRequiredDefaultDescription
namestringyesThe name of the table to create
forcebooleannofalsewhether to drop the table before creating it
idbooleannotrueWhether to create a default primarykey or not
primaryKeystringnoidName of the primary key field to create