ColdFusion 9 ORM: Default value does not work for strings

Viewed 163

I'm trying to create a new string property with a default value:

<cfproperty fieldtype="column" name="showIn" ormtype="string" default="credentials" notnull="true" required="false" />

After a ORMReload() the column is present in the database, but without a default value.


I expect:

showIn VARCHAR(255) NOT NULL DEFAULT "credentials"

I get:

showIn VARCHAR(255) NOT NULL


I'm using MySQL 5.1.63 and ColdFusion 9. (Adobe)

Am I missing something here?

1 Answers
Related