Merge pull request #1349 from CachetHQ/remove-id-casting

Laravel auto casts the id column to int for us
This commit is contained in:
James Brooks 2016-01-07 15:00:52 +00:00
commit 30f45cd045
10 changed files with 0 additions and 10 deletions

View File

@ -41,7 +41,6 @@ class Component extends Model implements HasPresenter
* @var string[]
*/
protected $casts = [
'id' => 'int',
'order' => 'int',
'group_id' => 'int',
'description' => 'string',

View File

@ -26,7 +26,6 @@ class ComponentGroup extends Model implements HasPresenter
* @var string[]
*/
protected $casts = [
'id' => 'int',
'name' => 'string',
'order' => 'int',
];

View File

@ -28,7 +28,6 @@ class Incident extends Model implements HasPresenter
* @var string[]
*/
protected $casts = [
'id' => 'int',
'visible' => 'int',
'scheduled_at' => 'date',
'deleted_at' => 'date',

View File

@ -25,7 +25,6 @@ class IncidentTemplate extends Model
* @var string[]
*/
protected $casts = [
'id' => 'int',
'name' => 'string',
'template' => 'string',
];

View File

@ -54,7 +54,6 @@ class Metric extends Model implements HasPresenter
* @var string[]
*/
protected $casts = [
'id' => 'int',
'name' => 'string',
'display_chart' => 'bool',
'default_value' => 'int',

View File

@ -26,7 +26,6 @@ class MetricPoint extends Model implements HasPresenter
* @var string[]
*/
protected $casts = [
'id' => 'int',
'metric_id' => 'int',
'value' => 'int',
];

View File

@ -21,7 +21,6 @@ class Setting extends Model
* @var string[]
*/
protected $casts = [
'id' => 'int',
'name' => 'string',
'value' => 'string',
];

View File

@ -27,7 +27,6 @@ class Subscriber extends Model implements HasPresenter
* @var string[]
*/
protected $casts = [
'id' => 'int',
'email' => 'string',
'verify_code' => 'string',
'verified_at' => 'date',

View File

@ -22,7 +22,6 @@ class Tag extends Model
* @var string[]
*/
protected $casts = [
'id' => 'int',
'name' => 'string',
];

View File

@ -44,7 +44,6 @@ class User extends Model implements AuthenticatableContract, CanResetPasswordCon
* @var string[]
*/
protected $casts = [
'id' => 'int',
'username' => 'string',
'email' => 'string',
'google_2fa_secret' => 'string',