SQL strict mode fixes. Closes #127
This commit is contained in:
parent
b33189e08e
commit
cc09d95a3d
7 changed files with 145 additions and 32 deletions
|
|
@ -76,31 +76,38 @@ class ProjectBase extends Model
|
|||
'length' => '11',
|
||||
'primary_key' => true,
|
||||
'auto_increment' => true,
|
||||
'default' => null,
|
||||
),
|
||||
'title' => array(
|
||||
'type' => 'varchar',
|
||||
'length' => '250',
|
||||
'default' => '',
|
||||
),
|
||||
'reference' => array(
|
||||
'type' => 'varchar',
|
||||
'length' => '250',
|
||||
'default' => '',
|
||||
),
|
||||
'git_key' => array(
|
||||
'type' => 'text',
|
||||
'length' => '',
|
||||
'default' => null,
|
||||
),
|
||||
'type' => array(
|
||||
'type' => 'varchar',
|
||||
'length' => '50',
|
||||
'default' => '',
|
||||
),
|
||||
'token' => array(
|
||||
'type' => 'varchar',
|
||||
'length' => '50',
|
||||
'nullable' => true,
|
||||
'default' => null,
|
||||
),
|
||||
'access_information' => array(
|
||||
'type' => 'varchar',
|
||||
'length' => '250',
|
||||
'default' => null,
|
||||
),
|
||||
);
|
||||
|
||||
|
|
@ -219,7 +226,7 @@ class ProjectBase extends Model
|
|||
{
|
||||
$this->_validateNotNull('Id', $value);
|
||||
$this->_validateInt('Id', $value);
|
||||
if ($this->data['id'] == $value) {
|
||||
if ($this->data['id'] === $value) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -238,7 +245,7 @@ class ProjectBase extends Model
|
|||
{
|
||||
$this->_validateNotNull('Title', $value);
|
||||
$this->_validateString('Title', $value);
|
||||
if ($this->data['title'] == $value) {
|
||||
if ($this->data['title'] === $value) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -257,7 +264,7 @@ class ProjectBase extends Model
|
|||
{
|
||||
$this->_validateNotNull('Reference', $value);
|
||||
$this->_validateString('Reference', $value);
|
||||
if ($this->data['reference'] == $value) {
|
||||
if ($this->data['reference'] === $value) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -276,7 +283,7 @@ class ProjectBase extends Model
|
|||
{
|
||||
$this->_validateNotNull('GitKey', $value);
|
||||
$this->_validateString('GitKey', $value);
|
||||
if ($this->data['git_key'] == $value) {
|
||||
if ($this->data['git_key'] === $value) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -295,7 +302,7 @@ class ProjectBase extends Model
|
|||
{
|
||||
$this->_validateNotNull('Type', $value);
|
||||
$this->_validateString('Type', $value);
|
||||
if ($this->data['type'] == $value) {
|
||||
if ($this->data['type'] === $value) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -313,7 +320,7 @@ class ProjectBase extends Model
|
|||
{
|
||||
|
||||
$this->_validateString('Token', $value);
|
||||
if ($this->data['token'] == $value) {
|
||||
if ($this->data['token'] === $value) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -332,7 +339,7 @@ class ProjectBase extends Model
|
|||
{
|
||||
$this->_validateNotNull('AccessInformation', $value);
|
||||
$this->_validateString('AccessInformation', $value);
|
||||
if ($this->data['access_information'] == $value) {
|
||||
if ($this->data['access_information'] === $value) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue