Fixing database stuff

This commit is contained in:
Dan Cryer 2014-12-02 16:41:07 +00:00
commit 1b28d43b7f
5 changed files with 71 additions and 17 deletions

View file

@ -110,16 +110,15 @@ class BuildBase extends Model
'commit_id' => array(
'type' => 'varchar',
'length' => 50,
'nullable' => true,
'default' => null,
),
'status' => array(
'type' => 'tinyint',
'length' => 4,
'type' => 'int',
'length' => 11,
'default' => null,
),
'log' => array(
'type' => 'longtext',
'type' => 'text',
'nullable' => true,
'default' => null,
),
@ -155,7 +154,7 @@ class BuildBase extends Model
'default' => null,
),
'extra' => array(
'type' => 'longtext',
'type' => 'text',
'nullable' => true,
'default' => null,
),
@ -382,10 +381,12 @@ class BuildBase extends Model
/**
* Set the value of CommitId / commit_id.
*
* Must not be null.
* @param $value string
*/
public function setCommitId($value)
{
$this->_validateNotNull('CommitId', $value);
$this->_validateString('CommitId', $value);
if ($this->data['commit_id'] === $value) {