lithium\data\source\database\adapter\MySql::$_constraints
Column contraints
Source
protected $_constraints = [
'primary' => ['template' => 'PRIMARY KEY ({:column})'],
'foreign_key' => [
'template' => 'FOREIGN KEY ({:column}) REFERENCES {:to} ({:toColumn}) {:on}'
],
'index' => ['template' => 'INDEX ({:column})'],
'unique' => [
'template' => 'UNIQUE {:index} ({:column})',
'key' => 'KEY',
'index' => 'INDEX'
],
'check' => ['template' => 'CHECK ({:expr})']
];