Migrator
addRecord()
Signature
Section titled “Signature”addRecord() — returns void
Available in: migration
Category: Migration Functions
Description
Section titled “Description”Adds a record to a table Only available in a migration CFC
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
table | string | yes | — | The table name to add the record to |
Examples
Section titled “Examples”addRecord(table='people',
id = 1,
title = "Mr",
firstname = "Bruce",
lastname = "Wayne",
email = "bruce@wayneenterprises.com",
tel = "555-67869099",
);