Commit Graph

268 Commits

Author SHA1 Message Date
Thomas Gelf e23e804421 schema: complete migrations for icinga_service_set 2021-11-30 13:48:05 +01:00
Ravi Kumar Kempapura Srinivasa 388c79e430 Add uuid to service sets. 2021-11-28 11:15:31 +01:00
Johannes Meyer ac575858dc schema: Quote keyword `groups` 2021-11-28 11:08:25 +01:00
Markus Frosch 8237d84cdb Add feature to specify a custom endpoint name for a host
- Render Endpoint and Zone with a different name per host
- Add custom variable `_director_custom_endpoint_name` to a host with that name
- Update `command_endpoint` behavior in services to use custom var or hostname
- Includes a feature flag that needs to be enabled
2021-10-21 14:59:52 +02:00
Thomas Gelf 6201fb52e4 schema: add branches 2021-10-06 03:24:48 +02:00
Thomas Gelf fc97d0d4e1 schema: add UUIDs for main Icinga objects 2021-10-06 02:01:58 +02:00
Thomas Gelf 0664da8f12 schema: allow NULL for purge_action 2021-03-12 16:52:44 +01:00
Thomas Gelf a8d25b70ee Sync: introduce a 'disable' purge action
fixes #2285
2021-03-11 23:00:52 +01:00
Thomas Gelf e258d00e83 schema: dummy migration to trigger daemon restart 2020-12-15 14:42:24 +01:00
Thomas Gelf b1c29c16d0 Sync: add missing migration files for sync-only
refs #2059
2020-01-21 20:11:52 +01:00
Thomas Gelf c12a6baeea Sync: implement update-only policy
fixes #2059
2020-01-17 09:01:25 +01:00
Thomas Gelf 1723e13557 schema/mysql: workaround for bug in MySQL v5.6
fixes #1993
2019-10-16 16:51:01 +02:00
Thomas Gelf 8edddeef40 schema/pgsql: allow for ports > 32767
fixes #928
2019-10-14 17:41:16 +02:00
Thomas Gelf f9c1326427 schema: constraint name pointing to category
fixes #1976
2019-10-07 21:51:21 +02:00
Thomas Gelf 9f7efeeb61 schema: add postgresql, add migration number 2019-10-02 09:53:15 +02:00
Valentina Da Rold c1306c11f7 Add db schema and migration 2019-10-01 15:32:34 +02:00
Thomas Gelf ed9e793e89 schema: prepare new daemon table 2019-09-25 12:10:08 +02:00
Thomas Gelf 4fcda464e8 Sync: allow notification, dependency, scheduled dt
fixes #925
fixes #1209
fixes #1211
fixes #1212
2019-09-06 09:39:35 +02:00
Thomas Gelf 7ed1aff475 schema: allow for longer host addresses
fixes #1890
2019-07-09 10:50:37 +02:00
Thomas Gelf 8de93a1a9a schema: prepare dependency host vars
fixes #1870
2019-07-09 10:36:57 +02:00
Thomas Gelf 01f2666ff2 IcingaDependency: drop parent_service_var 2019-07-09 10:36:57 +02:00
Thomas Gelf 161fc631ba schema/mysql: dependency vars 2019-07-09 10:36:57 +02:00
Markus Frosch 2fc79e1ecb schema: Fix migration 163 for certain MySQL versions
MySQL 5.6 won't accept NULL defaults with NOT NULL...

refs #1840
2019-04-26 10:13:44 +02:00
Markus Frosch d96dde10bb schema: Migrate all DATETIME to TIMESTAMP in MySQL
This addresses various timezone issues, that don't exist with the pgsql schema.
2019-04-23 15:39:00 +02:00
Nicolai c88f6f2393
Fix schema migration from CREATE to ALTER TABLE 2019-04-15 10:10:04 +02:00
Thomas Gelf 904ec7c435 ScheduledDowntimes: Hosts with Services, optional
schema, form, rendering

fixes #1831
2019-04-12 12:12:32 +02:00
Thomas Gelf 704fb368bd schema: make ready for pull request 2019-04-11 11:24:57 +02:00
Thomas Gelf d38465d0f2 schema: drop display_name 2019-04-11 02:53:10 +02:00
Thomas Gelf 2b8d2b4569 schema: add apply_to column, got forgotten 2019-04-11 02:34:14 +02:00
Thomas Gelf 61f962c7d6 schema/pgsql: prepare PostgreSQL migration 2019-04-11 02:34:14 +02:00
Thomas Gelf fa2af0ab9f schema/mysql-migrations: fix columns 2019-04-11 02:34:14 +02:00
Thomas Gelf 3cb4a0cbe9 schema/mysql: scheduled downtimes 2019-04-11 02:34:14 +02:00
Markus Frosch 6a79436af3 IcingaCommand: Allow command to be rendered as string
Icinga 2 allows this from the beginning.
2019-03-26 12:02:35 +01:00
Thomas Gelf f9321ec7b3 schema: allow for virtual config files > 16MB
fixes #1787
2019-02-26 16:30:49 +01:00
Thomas Gelf f06b5df3ae schema/postgres: fix wrong uniqueness
fixes #1762
2019-02-14 15:20:49 +01:00
Thomas Gelf b52316a8b5 pgsql/migrations: ignore missing index
fixes #1736
2019-02-14 15:18:25 +01:00
Thomas Gelf 61cb105ab1 schema: allow for larger basket summaries
fixes #1701
2018-11-14 11:24:05 +01:00
Thomas Gelf fc2e972bcd schema: flipped pg/mysql migration 2018-10-30 20:20:25 +01:00
Thomas Gelf 84673a64ca schema: enforce command object_name uniqueness
fixes #1496
2018-10-30 20:07:45 +01:00
Thomas Gelf b141bd15ef schema: raise forgotten schema version 2018-10-27 22:07:08 +02:00
Thomas Gelf 77cbb1040c GroupMemberTable: should work for services also
refs #1682
2018-10-25 08:21:58 +02:00
Gregory Hargreaves c62d5ef56c Added Schema migrations for the servicegroup resolved cache. 2018-10-22 09:42:33 +02:00
Thomas Gelf cb9366c5f5 schema: reset unnecessary command argument format
...definitions
2018-10-15 20:27:54 +02:00
Thomas Gelf 5d309b3dc7 sql: add basket schema and migrations 2018-10-15 15:03:57 +02:00
Thomas Gelf 885eadac0a schema: make rule_name and source_name unique 2018-10-15 15:03:57 +02:00
Thomas Gelf 764f6cca9f schema: support MySQL v8.x 2018-10-01 11:59:02 +02:00
Markus Frosch 0d879c60d3 IcingaTimeperiod: Support includes and excludes 2018-09-13 15:14:41 +02:00
Markus Frosch 4df7e8a23f schema/150: Add constraint from user to period 2018-09-06 10:46:04 +02:00
Thomas Gelf fbef8866ce Revert "schema/150: Add constraint from user to period"
This reverts commit 4b9ab649af.

Ooops: ERROR: Icinga\Exception\IcingaException in /workdir/icingaweb2-modules/director/library/Director/Db/Migration.php:50 with message: Migration 150 failed (SQLSTATE[HY000]: General error: 1093 Table 'icinga_user' is specified twice, both as a target for 'UPDATE' and as a separate source for data) while running UPDATE icinga_user
SET period_id = NULL
WHERE id IN (
  SELECT DISTINCT u.id
  FROM icinga_user u
  LEFT JOIN icinga_timeperiod tp ON tp.id = u.period_id
  WHERE u.period_id IS NOT NULL AND tp.id IS NULL
);
2018-09-05 18:32:52 +02:00
Markus Frosch 4b9ab649af schema/150: Add constraint from user to period 2018-09-05 18:28:55 +02:00