SyncRule: switch priority order, migrate DB

fixes #1077
This commit is contained in:
Thomas Gelf 2017-08-22 17:10:49 +02:00
parent 1815ef1521
commit 69607ada3c
5 changed files with 13 additions and 3 deletions

View File

@ -358,7 +358,7 @@ class SyncRule extends DbObject
$db->select()
->from('sync_property')
->where('rule_id = ?', $this->get('id'))
->order('priority DESC')
->order('priority ASC')
);
}
}

View File

@ -0,0 +1,5 @@
UPDATE sync_property SET priority = 10000 - priority;
INSERT INTO director_schema_migration
(schema_version, migration_time)
VALUES (140, NOW());

View File

@ -1563,4 +1563,4 @@ CREATE TABLE icinga_user_resolved_var (
INSERT INTO director_schema_migration
(schema_version, migration_time)
VALUES (139, NOW());
VALUES (140, NOW());

View File

@ -0,0 +1,5 @@
UPDATE sync_property SET priority = 10000 - priority;
INSERT INTO director_schema_migration
(schema_version, migration_time)
VALUES (140, NOW());

View File

@ -1841,4 +1841,4 @@ CREATE INDEX user_resolved_var_schecksum ON icinga_user_resolved_var (checksum);
INSERT INTO director_schema_migration
(schema_version, migration_time)
VALUES (139, NOW());
VALUES (140, NOW());