mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-01-18 05:58:18 +01:00
Merge pull request #1349 from CachetHQ/remove-id-casting
Laravel auto casts the id column to int for us
This commit is contained in:
commit
30f45cd045
@ -41,7 +41,6 @@ class Component extends Model implements HasPresenter
|
||||
* @var string[]
|
||||
*/
|
||||
protected $casts = [
|
||||
'id' => 'int',
|
||||
'order' => 'int',
|
||||
'group_id' => 'int',
|
||||
'description' => 'string',
|
||||
|
@ -26,7 +26,6 @@ class ComponentGroup extends Model implements HasPresenter
|
||||
* @var string[]
|
||||
*/
|
||||
protected $casts = [
|
||||
'id' => 'int',
|
||||
'name' => 'string',
|
||||
'order' => 'int',
|
||||
];
|
||||
|
@ -28,7 +28,6 @@ class Incident extends Model implements HasPresenter
|
||||
* @var string[]
|
||||
*/
|
||||
protected $casts = [
|
||||
'id' => 'int',
|
||||
'visible' => 'int',
|
||||
'scheduled_at' => 'date',
|
||||
'deleted_at' => 'date',
|
||||
|
@ -25,7 +25,6 @@ class IncidentTemplate extends Model
|
||||
* @var string[]
|
||||
*/
|
||||
protected $casts = [
|
||||
'id' => 'int',
|
||||
'name' => 'string',
|
||||
'template' => 'string',
|
||||
];
|
||||
|
@ -54,7 +54,6 @@ class Metric extends Model implements HasPresenter
|
||||
* @var string[]
|
||||
*/
|
||||
protected $casts = [
|
||||
'id' => 'int',
|
||||
'name' => 'string',
|
||||
'display_chart' => 'bool',
|
||||
'default_value' => 'int',
|
||||
|
@ -26,7 +26,6 @@ class MetricPoint extends Model implements HasPresenter
|
||||
* @var string[]
|
||||
*/
|
||||
protected $casts = [
|
||||
'id' => 'int',
|
||||
'metric_id' => 'int',
|
||||
'value' => 'int',
|
||||
];
|
||||
|
@ -21,7 +21,6 @@ class Setting extends Model
|
||||
* @var string[]
|
||||
*/
|
||||
protected $casts = [
|
||||
'id' => 'int',
|
||||
'name' => 'string',
|
||||
'value' => 'string',
|
||||
];
|
||||
|
@ -27,7 +27,6 @@ class Subscriber extends Model implements HasPresenter
|
||||
* @var string[]
|
||||
*/
|
||||
protected $casts = [
|
||||
'id' => 'int',
|
||||
'email' => 'string',
|
||||
'verify_code' => 'string',
|
||||
'verified_at' => 'date',
|
||||
|
@ -22,7 +22,6 @@ class Tag extends Model
|
||||
* @var string[]
|
||||
*/
|
||||
protected $casts = [
|
||||
'id' => 'int',
|
||||
'name' => 'string',
|
||||
];
|
||||
|
||||
|
@ -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',
|
||||
|
Loading…
x
Reference in New Issue
Block a user