mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-28 16:24:05 +02:00
IcingaService: add use_var_overrides
This commit is contained in:
parent
defb8c50c2
commit
b47c7be3d5
@ -38,6 +38,7 @@ class IcingaService extends IcingaObject
|
|||||||
'icon_image' => null,
|
'icon_image' => null,
|
||||||
'icon_image_alt' => null,
|
'icon_image_alt' => null,
|
||||||
'use_agent' => null,
|
'use_agent' => null,
|
||||||
|
'use_var_overrides' => null,
|
||||||
);
|
);
|
||||||
|
|
||||||
protected $relations = array(
|
protected $relations = array(
|
||||||
@ -58,6 +59,7 @@ class IcingaService extends IcingaObject
|
|||||||
'enable_perfdata' => 'enable_perfdata',
|
'enable_perfdata' => 'enable_perfdata',
|
||||||
'volatile' => 'volatile',
|
'volatile' => 'volatile',
|
||||||
'use_agent' => 'use_agent',
|
'use_agent' => 'use_agent',
|
||||||
|
'use_var_overrides' => 'use_var_overrides',
|
||||||
);
|
);
|
||||||
|
|
||||||
protected $intervalProperties = array(
|
protected $intervalProperties = array(
|
||||||
@ -205,6 +207,11 @@ class IcingaService extends IcingaObject
|
|||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function renderUse_agent()
|
public function renderUse_agent()
|
||||||
|
{
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
|
||||||
|
public function renderUse_var_overrides()
|
||||||
{
|
{
|
||||||
// @codingStandardsIgnoreEnd
|
// @codingStandardsIgnoreEnd
|
||||||
return '';
|
return '';
|
||||||
|
6
schema/mysql-migrations/upgrade_105.sql
Normal file
6
schema/mysql-migrations/upgrade_105.sql
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
ALTER TABLE icinga_service
|
||||||
|
ADD COLUMN use_var_overrides ENUM('y', 'n') DEFAULT NULL;
|
||||||
|
|
||||||
|
INSERT INTO director_schema_migration
|
||||||
|
(schema_version, migration_time)
|
||||||
|
VALUES (105, NOW());
|
@ -557,6 +557,7 @@ CREATE TABLE icinga_service (
|
|||||||
icon_image VARCHAR(255) DEFAULT NULL,
|
icon_image VARCHAR(255) DEFAULT NULL,
|
||||||
icon_image_alt VARCHAR(255) DEFAULT NULL,
|
icon_image_alt VARCHAR(255) DEFAULT NULL,
|
||||||
use_agent ENUM('y', 'n') DEFAULT NULL,
|
use_agent ENUM('y', 'n') DEFAULT NULL,
|
||||||
|
use_var_overrides ENUM('y', 'n') DEFAULT NULL,
|
||||||
PRIMARY KEY (id),
|
PRIMARY KEY (id),
|
||||||
UNIQUE KEY object_key (object_name, host_id),
|
UNIQUE KEY object_key (object_name, host_id),
|
||||||
CONSTRAINT icinga_service_host
|
CONSTRAINT icinga_service_host
|
||||||
@ -1312,4 +1313,4 @@ CREATE TABLE sync_run (
|
|||||||
|
|
||||||
INSERT INTO director_schema_migration
|
INSERT INTO director_schema_migration
|
||||||
SET migration_time = NOW(),
|
SET migration_time = NOW(),
|
||||||
schema_version = 104;
|
schema_version = 105;
|
||||||
|
6
schema/pgsql-migrations/upgrade_105.sql
Normal file
6
schema/pgsql-migrations/upgrade_105.sql
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
ALTER TABLE icinga_service
|
||||||
|
ADD COLUMN use_var_overrides enum_boolean DEFAULT NULL;
|
||||||
|
|
||||||
|
INSERT INTO director_schema_migration
|
||||||
|
(schema_version, migration_time)
|
||||||
|
VALUES (105, NOW());
|
@ -704,6 +704,7 @@ CREATE TABLE icinga_service (
|
|||||||
icon_image character varying(255) DEFAULT NULL,
|
icon_image character varying(255) DEFAULT NULL,
|
||||||
icon_image_alt character varying(255) DEFAULT NULL,
|
icon_image_alt character varying(255) DEFAULT NULL,
|
||||||
use_agent enum_boolean DEFAULT NULL,
|
use_agent enum_boolean DEFAULT NULL,
|
||||||
|
use_var_overrides enum_boolean DEFAULT NULL,
|
||||||
PRIMARY KEY (id),
|
PRIMARY KEY (id),
|
||||||
-- UNIQUE INDEX object_name (object_name, zone_id),
|
-- UNIQUE INDEX object_name (object_name, zone_id),
|
||||||
CONSTRAINT icinga_service_host
|
CONSTRAINT icinga_service_host
|
||||||
@ -1532,4 +1533,4 @@ CREATE UNIQUE INDEX notification_inheritance ON icinga_notification_inheritance
|
|||||||
|
|
||||||
INSERT INTO director_schema_migration
|
INSERT INTO director_schema_migration
|
||||||
(schema_version, migration_time)
|
(schema_version, migration_time)
|
||||||
VALUES (104, NOW());
|
VALUES (105, NOW());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user