Skip to content

Commit

Permalink
Sync rule: allow dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
vita2 committed Oct 4, 2017
1 parent 6980544 commit be26b58
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions application/forms/SyncRuleForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ public function setup()
'serviceSet' => $this->translate('Service Set'),
'user' => $this->translate('User'),
'usergroup' => $this->translate('User Group'),
'dependency' => $this->translate('Dependency'),
'datalistEntry' => $this->translate('Data List Entry'),
'command' => $this->translate('Command'),
'timePeriod' => $this->translate('Time Period'),
Expand Down
5 changes: 5 additions & 0 deletions schema/mysql-migrations/upgrade_147.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ALTER TABLE sync_rule MODIFY object_type enum('host', 'service', 'command', 'user', 'hostgroup', 'servicegroup', 'usergroup', 'datalistEntry', 'endpoint', 'zone', 'timePeriod', 'serviceSet', 'dependency') NOT NULL;

INSERT INTO director_schema_migration
(schema_version, migration_time)
VALUES (147, NOW());
3 changes: 2 additions & 1 deletion schema/mysql.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1397,7 +1397,8 @@ CREATE TABLE sync_rule (
'endpoint',
'zone',
'timePeriod',
'serviceSet'
'serviceSet',
'dependency'
) NOT NULL,
update_policy ENUM('merge', 'override', 'ignore') NOT NULL,
purge_existing ENUM('y', 'n') NOT NULL DEFAULT 'n',
Expand Down

0 comments on commit be26b58

Please sign in to comment.