I’m working on a plugin that includes a custom fieldtype. Using Craft 2.6.2911, the fieldtype’s defineSettings
looks like this:
public function defineSettings ( ) {
return [
'json_data' => [
AttributeType::String,
'column' => ColumnType::LongText
]
];
}
When I add this field to a tab group, the new column is added to the craft_content
table as a varchar(255)
, not a text
-type column. Is there an additional definition I need somewhere?
I did not see a relevant note in the changelog for builds of Craft between 2.6.2911 and 2.6.2944.
When reviewing my database schema, I'm seeing the following:
| field_jsonSync | varchar(255) | YES | | NULL | |