Whatever message this page gives is out now! Go check it out!

Autogenerate database schema

Last update:
May 18, 2026
ColdFusion automatically creates tables when ORM is initialized for the application. For auto-generating tables, do the following: In the THIS scope of Application.cfc, in ormsettings struct, set the dbCreate property to one of the following values:
  • update: Creates the table (if it does not exist) or updates the table (if it exists).
  • dropcreate: Drops the table if it exists and then creates it. For example,
<cfset this.ormsettings.dbCreate="update">
Certain specific attributes (DDL-only attributes) defined for the tags cfcomponent and cfproperty can be use to define various attributes for the auto-generated tables and columns. DDL-only attributes are used only for DDL generation. For details of these attributes, see the table in the section DDL-only attributes in Column.

Share this page

Was this page helpful?
We're glad. Tell us how this page helped.
We're sorry. Can you tell us what didn't work for you?
Thank you for your feedback. Your response will help improve this page.

On this page