Commit Graph

236 Commits

Author SHA1 Message Date
Thomas Gelf e4a2e3e9fc Revert "schema/pgsql/upgrade_104.sql: related to last..."
This reverts commit 17292e7680.
2017-01-19 11:53:57 +01:00
Thomas Gelf 91c82a0e5e Revert "schema/mysql/upgrade_104: drop invalid data..."
This reverts commit 402f0ed4b4.
2017-01-19 11:53:48 +01:00
Thomas Gelf 17292e7680 schema/pgsql/upgrade_104.sql: related to last...
...commit

fixes #730
2017-01-19 10:36:58 +01:00
Thomas Gelf 402f0ed4b4 schema/mysql/upgrade_104: drop invalid data...
...before upgrading

fixes #730
2017-01-19 09:02:01 +01:00
Thomas Gelf 379e5d12ae schema: add index on activity log author
fixes #687
2017-01-18 13:29:13 +01:00
Thomas Gelf e64e4de678 mysql-migrations/upgrade_126: one more weird...
...index bound to die

fixes #13859
2017-01-03 17:09:34 +01:00
Thomas Gelf ee5ca2f33e schema/upgrade_127: avoid problems with utf8mb4 2016-12-16 14:27:39 +01:00
Thomas Gelf 07b6090c31 schema: add variable cache/lookup tables
refs #13068
2016-12-15 19:45:22 +01:00
Thomas Gelf e4525a09df upgrade_126: re-order queries
...otherwise we might delete indexes before the related constraint in case
they are different

refs #13591
2016-12-15 16:21:49 +01:00
Thomas Gelf 2918ef555e schema: fix lost/diverged foreign keys
fixes #13591
2016-12-15 15:51:48 +01:00
Thomas Gelf 4f8f79557b schema: provide migration for conditional fields
fixes #13253
2016-12-14 17:41:15 +01:00
Thomas Gelf 4eae20d0c4 schema: add var_filter column to field tables 2016-12-14 16:36:33 +01:00
Thomas Gelf d2bd133d51 schema: allow to delete service sets...
...containing services and also hosts using service sets without requiring one
to manually remove all assigned sets first

fixes #13531
2016-12-14 15:29:44 +01:00
Thomas Gelf 52f0fc9177 schema: fix cleanup in recent service_set migration
fixes #13401
2016-12-07 09:48:52 +01:00
Markus Frosch 64284ee96a Add schema migration for ServiceSet foreign keys
This will clean up dangling service_set for non-existing host and service for service_set

refs #13309
2016-11-28 16:46:47 +01:00
Thomas Gelf 92bb24b414 schema: add cnt_apply column 2016-11-03 13:25:32 +01:00
Thomas Gelf 3f7a184d2f schema: get rid of service_set_service, introduce
...a service_set_id column directly on the service
2016-10-25 23:12:23 +00:00
Thomas Gelf 47cd8cdc89 schema: add assign_type migrations for pgsql...
...and complete them for mysql
2016-10-25 02:00:50 +00:00
Thomas Gelf 3ff6fd5211 schema/mysql: migrate all remaining assignments 2016-10-24 03:19:18 +00:00
Thomas Gelf 9d8cc13dca schema/mysql: use higher migration number 2016-10-22 16:16:23 +00:00
Thomas Gelf 78a380811f schema/mysql: simplify apply rules 2016-10-22 07:02:09 +00:00
Geneviève Plantin b00d3b4943 Change version of migration 2016-10-22 06:08:33 +00:00
Geneviève Plantin b2bdeac360 Change version of DB 2016-10-22 06:08:24 +00:00
Geneviève Plantin 0fe47f9919 Add apply_for migrations in schema 2016-10-22 06:08:10 +00:00
Corentin Ardeois e7bd4343b5 Add support for Apply for rules in services
Apply for rules are defined through `apply_for` property
Only Array custom variables will be eligible in apply_for dropdown.

API Example:
```bash
 ./director-curl POST director/service?name=my_service '{"apply_for": "for (checked_tcp_port in host.vars.checked_tcp_ports)" }'
 ```

 Will render as:
 ```
  apply Service "my_service" for (checked_tcp_port in host.vars.checked_tcp_ports) {
      ...
  }
  ```
Feature: https://dev.icinga.org/issues/11976

Depends-On: https://github.com/Icinga/icingaweb2-module-director/pull/20
refs #11976
2016-10-22 06:00:54 +00:00
Thomas Gelf cf4dccc817 Notification: add fields support
fixes #12642
2016-10-13 14:34:25 +00:00
Thomas Gelf d7a53ac19f schema: add more sync object types
fixes #11361
2016-10-12 08:50:58 +00:00
Thomas Gelf 63fca7143c schema: add icinga_service_set_inheritance...
...and fix NULL constraints
2016-10-12 08:07:51 +00:00
Thomas Gelf 1a03cea5d7 schema: add service set tables 2016-10-12 07:03:51 +00:00
Thomas Gelf f60f35bd1f schema/pgsql: fix forgotten column configs
thanks @greatexpectations!

fixes #12863
2016-10-06 17:46:14 +00:00
Thomas Gelf 8d1cd64b64 schema/mysql.sql: fix typo
Thanks @dgoetz!
2016-10-06 11:07:49 +00:00
Thomas Gelf c4c5706a62 schema/mysql: case insensitive datalist entry names 2016-10-05 17:49:24 +00:00
Thomas Gelf 989ac534ab schema/pgsql: allow to delete import sources...
...with history import runs

fixes #11972
2016-09-23 17:36:34 +00:00
Thomas Gelf 0e133daa8b schema: fix legacy booleans stored as strings
fixes #12526
2016-09-23 16:22:35 +00:00
Markus Frosch a90595a004 IcingaHostGroup: Add apply statements 2016-09-09 08:32:42 +00:00
Thomas Gelf 4d34a8ade1 schema/mysql: case sensitive varnames
fixes #11911
2016-09-09 06:59:13 +00:00
Markus Frosch 421c154e08 schema: ensure last_error_message is stored as TEXT 2016-09-09 06:41:00 +00:00
Thomas Gelf 1afdf66c07 schema/pgsql: allow to delete sync rules
fixes #11973
2016-09-08 23:42:30 +00:00
Thomas Gelf b47c7be3d5 IcingaService: add use_var_overrides 2016-09-08 15:01:19 +00:00
Thomas Gelf 13ed701436 schema: migrations for range properties 2016-08-31 16:24:40 +00:00
Thomas Gelf fbf4400ad2 schema: command argument_name should not be null
fixes #11554
fixes #11918
2016-08-26 07:02:15 +00:00
Thomas Gelf eab8b5c9ba schema: shorten history large deployment logs...
...and free related disk space
2016-07-26 13:50:42 +02:00
Thomas Gelf 439757d464 IcingaHost: introduce API keys 2016-07-26 09:52:55 +02:00
Thomas Gelf 634d9e07b6 schema: raise schema versions for new installations
Forgot to commit & push migration 99, sorry :p
2016-07-22 18:11:47 +02:00
Thomas Gelf 8d2f546a2e schema: provide target_property for modifiers
refs #11949
2016-07-20 13:15:05 +02:00
Thomas Gelf 0605c5acc8 schema/pgsql: add unix_timestamp function 2016-05-21 00:59:16 +02:00
Thomas Gelf 44d9392e70 schema/mysql.sql: fix ordering 2016-05-21 00:27:45 +02:00
Thomas Gelf 804245a35a schema/pgsql: add timeperiod support for jobs 2016-05-21 00:25:38 +02:00
Thomas Gelf b2f202079e schema/pgsql: apply_to for notifications 2016-05-21 00:15:27 +02:00
Thomas Gelf 8fe1bda36e schema/pgsql: add state columns for import sources 2016-05-21 00:11:01 +02:00
Thomas Gelf b40e1af5e8 schema/pgsql: add job tables 2016-05-20 23:57:56 +02:00
Thomas Gelf b4a0baa109 schema/pgsql: extend sync rule 2016-05-20 23:42:21 +02:00
Thomas Gelf 0e9a1392e5 schema/pgsql: allow no null var names 2016-05-20 23:20:19 +02:00
Thomas Gelf 9c31a51a18 schema/mysql: add timeperiod support for jobs 2016-05-20 15:58:08 +02:00
Thomas Gelf f6a9e3b149 schema/mysql: apply_to for notifications 2016-05-20 15:51:10 +02:00
Thomas Gelf 5f165a59c7 schema/mysql: add state columns for import sources 2016-04-22 15:26:23 +02:00
Thomas Gelf c494c808ca schema/mysql: add job tables 2016-04-22 11:40:15 +02:00
Thomas Gelf e01cfeabef schema/mysql: extend sync rule 2016-04-22 11:12:29 +02:00
Thomas Gelf 9db04c35ef schema/mysql: allow no null var names
fixes #11518
2016-04-05 23:53:10 +02:00
Thomas Gelf 19d56fc546 schema: add notification assign type column
thnx @spillerm

refs #11452
2016-03-27 19:11:28 +02:00
Thomas Gelf e8cfeb74cc schema: add assign type column 2016-03-23 02:35:37 +01:00
Thomas Gelf c7578bd7ef schema: allow for required arguments 2016-03-21 02:44:50 +01:00
Thomas Gelf 53657cdb31 schema/pgsql: larger file_path field for config
fixes #11383
2016-03-18 21:27:33 +01:00
Thomas Gelf ad8469a34c schema/mysql: allow to apply notifications 2016-03-18 14:10:53 +01:00
Thomas Gelf a3c089e6c6 schema: add tables for notification user(group)s 2016-03-15 22:23:21 +01:00
Thomas Gelf 247ef41483 schema: add notification assignment tables 2016-03-12 01:56:59 +01:00
Thomas Gelf d3130d0494 schema: remove usergroup zone_id for now 2016-03-09 20:36:39 +01:00
Thomas Gelf 6377ed4bc7 schema/pgsql: allow for longer (> 255) commands
This has already been fixed for MySQL time ago.

refs #11315
2016-03-06 19:28:21 +01:00
Thomas Gelf 09e7a93b22 schema/mysql: remove obsolete comma 2016-03-06 13:59:46 +01:00
Thomas Gelf f76ca5fe0d schema/mysql: forgot to raise migration version 2016-03-06 00:38:26 +01:00
Thomas Gelf f37671c2c0 schema: align PostgreSQL and MySQL sync types 2016-03-05 20:34:24 +01:00
Thomas Gelf 4d84b41272 schema/pgsql: do not enforce import end_time 2016-03-05 20:07:05 +01:00
Thomas Gelf b65c9f4d4a schema/pgsql: fix tests for timeperiod_ranges 2016-03-02 20:51:41 +01:00
Thomas Gelf 4dfe03816a schema/pgsql: fix primary key on icinga_user_*_set 2016-03-02 20:48:10 +01:00
Thomas Gelf 804a30f8d4 schema: add user fields 2016-03-01 05:12:27 +01:00
Thomas Gelf 7f24e7f50a schema/pgsql: various fixes 2016-03-01 04:17:45 +01:00
Markus Frosch 133b5fb0a1 Fix NOT NULLs in PostgreSQL base schema
refs #11110
2016-03-01 00:20:00 +01:00
Markus Frosch 5f9f97f122 Add PostgreSQL migration 77
refs #11110
2016-03-01 00:06:18 +01:00
Markus Frosch e0b44e3f01 Bulk update PostgreSQL schema to 76
refs #11110
2016-02-29 23:53:00 +01:00
Thomas Gelf 665fd6a0ff schema/mysql: add missing notification tables 2016-02-29 23:45:31 +01:00
Thomas Gelf 62c1aec917 IcingaUser: remove obsolete states stub 2016-02-29 18:29:18 +01:00
Thomas Gelf b2311130ba schema/mysql: fix too restrictive primary key 2016-02-29 17:34:16 +01:00
Thomas Gelf 83d2047a23 schema/mysql: delete services on host deletion
We would otherwise create host-less service-aliens
2016-02-29 15:41:55 +01:00
Thomas Gelf df60644786 schema/mysql: add new user event filter tables 2016-02-29 15:35:11 +01:00
Thomas Gelf e64e72cb52 schema/mysql: more checksums for more history voodoo 2016-02-27 18:13:21 +01:00
Thomas Gelf 56dd2b44c4 schema/mysql: fix timeperiod relation name 2016-02-27 01:23:47 +01:00
Thomas Gelf 915b776e37 mysql/schema: add notification table 2016-02-27 01:12:44 +01:00
Thomas Gelf f0cf938ddc schema/mysql: delete ranges on time period deletion 2016-02-26 14:11:47 +01:00
Thomas Gelf ccc6274be5 schema/mysql: add hints to file header 2016-02-26 09:14:07 +01:00
Thomas Gelf 92f54dbae2 schema/mysql: storing what we know makes life easier 2016-02-24 12:20:48 +01:00
Thomas Gelf 402d2a7f53 mysql-migrations/upgrade_68: oops, forgot a file 2016-02-24 11:36:49 +01:00
Thomas Gelf ab5bc8035d schema/mysql: sync_run.duration_ms might be null
This allows us to store sync_run stats without a duration in the sync
transaction while updating duration afterwards. This way the commit
duration makes part of our measurement.
2016-02-24 11:23:01 +01:00
Thomas Gelf 42e87476fb schema/mysql: add sync_run history table 2016-02-24 10:50:57 +01:00
Thomas Gelf f03503492a schema/mysql: re-create import modifier tables 2016-02-17 22:12:00 +01:00
Thomas Gelf c3ac57ede0 schema/mysql: forgot to raise schema version 2016-02-17 15:37:35 +01:00
Thomas Gelf 5b3b5cbfb8 IcingaObjects: add new "disabled" property 2016-02-16 12:17:50 +01:00
Thomas Gelf b551651f7e schema/mysql: introduce the director_setting table 2016-02-09 19:37:23 +01:00
Thomas Gelf 84cbf522c9 Migrations: implement DB migration helpers 2016-02-08 22:33:28 +01:00
Thomas Gelf 0b36b39cf7 mysql/schema: allow longer commands
fixes #11023
2016-02-02 20:08:49 +01:00
Thomas Gelf df89a2b89e schema/mysql: hosts must be globally unique 2016-01-19 16:47:18 +01:00