Merge branch 'master' of ssh://172.20.0.1/var/git/espo/backend

This commit is contained in:
Yuri Kuznetsov
2014-05-01 15:38:21 +03:00
2 changed files with 49 additions and 0 deletions
@@ -31,4 +31,52 @@ class Column extends \Doctrine\DBAL\Schema\Column
*/
protected $_notnull = false;
/**
* @var boolean
*/
protected $_unique = false;
/**
* @param boolean $unique
*
* @return \Doctrine\DBAL\Schema\Column
*/
public function setUnique($unique)
{
$this->_unique = (bool)$unique;
return $this;
}
/**
* @return boolean
*/
public function getUnique()
{
return $this->_unique;
}
/**
* @return array
*/
public function toArray()
{
return array_merge(array(
'name' => $this->_name,
'type' => $this->_type,
'default' => $this->_default,
'notnull' => $this->_notnull,
'length' => $this->_length,
'precision' => $this->_precision,
'scale' => $this->_scale,
'fixed' => $this->_fixed,
'unsigned' => $this->_unsigned,
'autoincrement' => $this->_autoincrement,
'unique' => $this->_unique,
'columnDefinition' => $this->_columnDefinition,
'comment' => $this->_comment,
), $this->_platformOptions, $this->_customSchemaOptions);
}
}
@@ -10,6 +10,7 @@
"type":"int"
}
],
"notCreatable": true,
"search":{
"basic":true,
"advanced":true