Removing unused plugins column, adding extra column to allow for type-specific build information (such as forked repo information for pull requests or a patch file
This commit is contained in:
parent
edc8bb0754
commit
9486bd0863
|
@ -42,9 +42,9 @@ class BuildBase extends Model
|
||||||
'created' => null,
|
'created' => null,
|
||||||
'started' => null,
|
'started' => null,
|
||||||
'finished' => null,
|
'finished' => null,
|
||||||
'plugins' => null,
|
|
||||||
'committer_email' => null,
|
'committer_email' => null,
|
||||||
'commit_message' => null,
|
'commit_message' => null,
|
||||||
|
'extra' => null,
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -61,9 +61,9 @@ class BuildBase extends Model
|
||||||
'created' => 'getCreated',
|
'created' => 'getCreated',
|
||||||
'started' => 'getStarted',
|
'started' => 'getStarted',
|
||||||
'finished' => 'getFinished',
|
'finished' => 'getFinished',
|
||||||
'plugins' => 'getPlugins',
|
|
||||||
'committer_email' => 'getCommitterEmail',
|
'committer_email' => 'getCommitterEmail',
|
||||||
'commit_message' => 'getCommitMessage',
|
'commit_message' => 'getCommitMessage',
|
||||||
|
'extra' => 'getExtra',
|
||||||
|
|
||||||
// Foreign key getters:
|
// Foreign key getters:
|
||||||
'Project' => 'getProject',
|
'Project' => 'getProject',
|
||||||
|
@ -83,9 +83,9 @@ class BuildBase extends Model
|
||||||
'created' => 'setCreated',
|
'created' => 'setCreated',
|
||||||
'started' => 'setStarted',
|
'started' => 'setStarted',
|
||||||
'finished' => 'setFinished',
|
'finished' => 'setFinished',
|
||||||
'plugins' => 'setPlugins',
|
|
||||||
'committer_email' => 'setCommitterEmail',
|
'committer_email' => 'setCommitterEmail',
|
||||||
'commit_message' => 'setCommitMessage',
|
'commit_message' => 'setCommitMessage',
|
||||||
|
'extra' => 'setExtra',
|
||||||
|
|
||||||
// Foreign key setters:
|
// Foreign key setters:
|
||||||
'Project' => 'setProject',
|
'Project' => 'setProject',
|
||||||
|
@ -143,11 +143,6 @@ class BuildBase extends Model
|
||||||
'nullable' => true,
|
'nullable' => true,
|
||||||
'default' => null,
|
'default' => null,
|
||||||
),
|
),
|
||||||
'plugins' => array(
|
|
||||||
'type' => 'text',
|
|
||||||
'nullable' => true,
|
|
||||||
'default' => null,
|
|
||||||
),
|
|
||||||
'committer_email' => array(
|
'committer_email' => array(
|
||||||
'type' => 'varchar',
|
'type' => 'varchar',
|
||||||
'length' => 512,
|
'length' => 512,
|
||||||
|
@ -159,6 +154,11 @@ class BuildBase extends Model
|
||||||
'nullable' => true,
|
'nullable' => true,
|
||||||
'default' => null,
|
'default' => null,
|
||||||
),
|
),
|
||||||
|
'extra' => array(
|
||||||
|
'type' => 'longtext',
|
||||||
|
'nullable' => true,
|
||||||
|
'default' => null,
|
||||||
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -303,18 +303,6 @@ class BuildBase extends Model
|
||||||
return $rtn;
|
return $rtn;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the value of Plugins / plugins.
|
|
||||||
*
|
|
||||||
* @return string
|
|
||||||
*/
|
|
||||||
public function getPlugins()
|
|
||||||
{
|
|
||||||
$rtn = $this->data['plugins'];
|
|
||||||
|
|
||||||
return $rtn;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the value of CommitterEmail / committer_email.
|
* Get the value of CommitterEmail / committer_email.
|
||||||
*
|
*
|
||||||
|
@ -339,6 +327,18 @@ class BuildBase extends Model
|
||||||
return $rtn;
|
return $rtn;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the value of Extra / extra.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function getExtra()
|
||||||
|
{
|
||||||
|
$rtn = $this->data['extra'];
|
||||||
|
|
||||||
|
return $rtn;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the value of Id / id.
|
* Set the value of Id / id.
|
||||||
*
|
*
|
||||||
|
@ -509,24 +509,6 @@ class BuildBase extends Model
|
||||||
$this->_setModified('finished');
|
$this->_setModified('finished');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Set the value of Plugins / plugins.
|
|
||||||
*
|
|
||||||
* @param $value string
|
|
||||||
*/
|
|
||||||
public function setPlugins($value)
|
|
||||||
{
|
|
||||||
$this->_validateString('Plugins', $value);
|
|
||||||
|
|
||||||
if ($this->data['plugins'] === $value) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
$this->data['plugins'] = $value;
|
|
||||||
|
|
||||||
$this->_setModified('plugins');
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the value of CommitterEmail / committer_email.
|
* Set the value of CommitterEmail / committer_email.
|
||||||
*
|
*
|
||||||
|
@ -563,6 +545,24 @@ class BuildBase extends Model
|
||||||
$this->_setModified('commit_message');
|
$this->_setModified('commit_message');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the value of Extra / extra.
|
||||||
|
*
|
||||||
|
* @param $value string
|
||||||
|
*/
|
||||||
|
public function setExtra($value)
|
||||||
|
{
|
||||||
|
$this->_validateString('Extra', $value);
|
||||||
|
|
||||||
|
if ($this->data['extra'] === $value) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->data['extra'] = $value;
|
||||||
|
|
||||||
|
$this->_setModified('extra');
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the Project model for this Build by Id.
|
* Get the Project model for this Build by Id.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue