mirror of
https://github.com/Icinga/icingadb-web.git
synced 2026-04-15 21:59:47 -04:00
Drop obsolete models
This commit is contained in:
parent
9b9a05eeb0
commit
edc3cf731c
8 changed files with 0 additions and 202 deletions
|
|
@ -39,9 +39,7 @@ class Environment extends Model
|
|||
$relations->hasMany('eventcommand_customvar', EventcommandCustomvar::class);
|
||||
$relations->hasMany('eventcommand_envvar', EventcommandEnvvar::class);
|
||||
$relations->hasMany('host', Host::class);
|
||||
$relations->hasMany('host_comment', HostComment::class);
|
||||
$relations->hasMany('host_customvar', HostCustomvar::class);
|
||||
$relations->hasMany('host_downtime', HostDowntime::class);
|
||||
$relations->hasMany('host_state', HostState::class);
|
||||
$relations->hasMany('hostgroup', Hostgroup::class);
|
||||
$relations->hasMany('hostgroup_customvar', HostgroupCustomvar::class);
|
||||
|
|
@ -57,9 +55,7 @@ class Environment extends Model
|
|||
$relations->hasMany('notificationcommand_customvar', NotificationcommandCustomvar::class);
|
||||
$relations->hasMany('notificationcommand_envvar', NotificationcommandEnvvar::class);
|
||||
$relations->hasMany('service', Service::class);
|
||||
$relations->hasMany('service_comment', ServiceComment::class);
|
||||
$relations->hasMany('service_customvar', ServiceCustomvar::class);
|
||||
$relations->hasMany('service_downtime', ServiceDowntime::class);
|
||||
$relations->hasMany('service_state', ServiceState::class);
|
||||
$relations->hasMany('servicegroup', Servicegroup::class);
|
||||
$relations->hasMany('servicegroup_customvar', ServicegroupCustomvar::class);
|
||||
|
|
|
|||
|
|
@ -1,46 +0,0 @@
|
|||
<?php
|
||||
|
||||
namespace Icinga\Module\Icingadb\Model;
|
||||
|
||||
use ipl\Orm\Model;
|
||||
use ipl\Orm\Relations;
|
||||
|
||||
class HostComment extends Model
|
||||
{
|
||||
public function getTableName()
|
||||
{
|
||||
return 'host_comment';
|
||||
}
|
||||
|
||||
public function getKeyName()
|
||||
{
|
||||
return 'id';
|
||||
}
|
||||
|
||||
public function getColumns()
|
||||
{
|
||||
return [
|
||||
'environment_id',
|
||||
'host_id',
|
||||
'name_checksum',
|
||||
'properties_checksum',
|
||||
'name',
|
||||
'author',
|
||||
'text',
|
||||
'entry_type',
|
||||
'entry_time',
|
||||
'is_persistent',
|
||||
'expire_time',
|
||||
'zone_id'
|
||||
];
|
||||
}
|
||||
|
||||
public function createRelations(Relations $relations)
|
||||
{
|
||||
$relations->belongsTo('environment', Environment::class);
|
||||
$relations->belongsTo('host', Host::class);
|
||||
$relations->belongsTo('state', HostState::class)
|
||||
->setForeignKey('acknowledgement_comment_id');
|
||||
$relations->belongsTo('zone', Zone::class);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,48 +0,0 @@
|
|||
<?php
|
||||
|
||||
namespace Icinga\Module\Icingadb\Model;
|
||||
|
||||
use ipl\Orm\Model;
|
||||
use ipl\Orm\Relations;
|
||||
|
||||
class HostDowntime extends Model
|
||||
{
|
||||
public function getTableName()
|
||||
{
|
||||
return 'host_downtime';
|
||||
}
|
||||
|
||||
public function getKeyName()
|
||||
{
|
||||
return 'id';
|
||||
}
|
||||
|
||||
public function getColumns()
|
||||
{
|
||||
return [
|
||||
'environment_id',
|
||||
'host_id',
|
||||
'name_checksum',
|
||||
'properties_checksum',
|
||||
'name',
|
||||
'author',
|
||||
'comment',
|
||||
'entry_time',
|
||||
'scheduled_start_time',
|
||||
'scheduled_end_time',
|
||||
'duration',
|
||||
'is_fixed',
|
||||
'is_in_effect',
|
||||
'actual_start_time',
|
||||
'actual_end_time',
|
||||
'zone_id'
|
||||
];
|
||||
}
|
||||
|
||||
public function createRelations(Relations $relations)
|
||||
{
|
||||
$relations->belongsTo('environment', Environment::class);
|
||||
$relations->belongsTo('host', Host::class);
|
||||
$relations->belongsTo('zone', Zone::class);
|
||||
}
|
||||
}
|
||||
|
|
@ -24,9 +24,6 @@ class HostState extends State
|
|||
{
|
||||
$relations->belongsTo('environment', Environment::class);
|
||||
$relations->belongsTo('host', Host::class);
|
||||
|
||||
$relations->hasOne('comment', HostComment::class)
|
||||
->setCandidateKey('acknowledgement_comment_id');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -1,46 +0,0 @@
|
|||
<?php
|
||||
|
||||
namespace Icinga\Module\Icingadb\Model;
|
||||
|
||||
use ipl\Orm\Model;
|
||||
use ipl\Orm\Relations;
|
||||
|
||||
class ServiceComment extends Model
|
||||
{
|
||||
public function getTableName()
|
||||
{
|
||||
return 'service_comment';
|
||||
}
|
||||
|
||||
public function getKeyName()
|
||||
{
|
||||
return 'id';
|
||||
}
|
||||
|
||||
public function getColumns()
|
||||
{
|
||||
return [
|
||||
'environment_id',
|
||||
'service_id',
|
||||
'name_checksum',
|
||||
'properties_checksum',
|
||||
'name',
|
||||
'author',
|
||||
'text',
|
||||
'entry_type',
|
||||
'entry_time',
|
||||
'is_persistent',
|
||||
'expire_time',
|
||||
'zone_id'
|
||||
];
|
||||
}
|
||||
|
||||
public function createRelations(Relations $relations)
|
||||
{
|
||||
$relations->belongsTo('environment', Environment::class);
|
||||
$relations->belongsTo('service', Service::class);
|
||||
$relations->belongsTo('state', ServiceState::class)
|
||||
->setForeignKey('acknowledgement_comment_id');
|
||||
$relations->belongsTo('zone', Zone::class);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,48 +0,0 @@
|
|||
<?php
|
||||
|
||||
namespace Icinga\Module\Icingadb\Model;
|
||||
|
||||
use ipl\Orm\Model;
|
||||
use ipl\Orm\Relations;
|
||||
|
||||
class ServiceDowntime extends Model
|
||||
{
|
||||
public function getTableName()
|
||||
{
|
||||
return 'service_downtime';
|
||||
}
|
||||
|
||||
public function getKeyName()
|
||||
{
|
||||
return 'id';
|
||||
}
|
||||
|
||||
public function getColumns()
|
||||
{
|
||||
return [
|
||||
'environment_id',
|
||||
'service_id',
|
||||
'name_checksum',
|
||||
'properties_checksum',
|
||||
'name',
|
||||
'author',
|
||||
'comment',
|
||||
'entry_time',
|
||||
'scheduled_start_time',
|
||||
'scheduled_end_time',
|
||||
'duration',
|
||||
'is_fixed',
|
||||
'is_in_effect',
|
||||
'actual_start_time',
|
||||
'actual_end_time',
|
||||
'zone_id'
|
||||
];
|
||||
}
|
||||
|
||||
public function createRelations(Relations $relations)
|
||||
{
|
||||
$relations->belongsTo('environment', Environment::class);
|
||||
$relations->belongsTo('service', Service::class);
|
||||
$relations->belongsTo('zone', Zone::class);
|
||||
}
|
||||
}
|
||||
|
|
@ -21,9 +21,6 @@ class ServiceState extends State
|
|||
{
|
||||
$relations->belongsTo('environment', Environment::class);
|
||||
$relations->belongsTo('service', Service::class);
|
||||
|
||||
$relations->hasOne('comment', ServiceComment::class)
|
||||
->setCandidateKey('acknowledgement_comment_id');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -38,13 +38,9 @@ class Zone extends Model
|
|||
$relations->hasMany('endpoint', Endpoint::class);
|
||||
$relations->hasMany('eventcommand', Eventcommand::class);
|
||||
$relations->hasMany('host', Host::class);
|
||||
$relations->hasMany('host_comment', HostComment::class);
|
||||
$relations->hasMany('host_downtime', HostDowntime::class);
|
||||
$relations->hasMany('hostgroup', Hostgroup::class);
|
||||
$relations->hasMany('notification', Notification::class);
|
||||
$relations->hasMany('service', Service::class);
|
||||
$relations->hasMany('service_comment', ServiceComment::class);
|
||||
$relations->hasMany('service_downtime', ServiceDowntime::class);
|
||||
$relations->hasMany('servicegroup', Servicegroup::class);
|
||||
$relations->hasMany('timeperiod', Timeperiod::class);
|
||||
$relations->hasMany('user', User::class);
|
||||
|
|
|
|||
Loading…
Reference in a new issue