mirror of https://github.com/Icinga/icinga2.git
Ensure that the legacy_id attribute for comment/downtime objects is restored on restart
This has been changed when moving comments/downtimes to config objects
in 050c520b2a
It may cause trouble with DB IDO DELETE and UPDATE statements
depending on the old value.
refs #11382
This commit is contained in:
parent
98e1d70dab
commit
0447e81d99
|
@ -88,7 +88,7 @@ class Comment : ConfigObject < CommentNameComposer
|
|||
[config, required] String author;
|
||||
[config, required] String text;
|
||||
[config] double expire_time;
|
||||
int legacy_id;
|
||||
[state] int legacy_id;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -81,7 +81,7 @@ class Downtime : ConfigObject < DowntimeNameComposer
|
|||
[state] Array::Ptr triggers {
|
||||
default {{{ return new Array(); }}}
|
||||
};
|
||||
int legacy_id;
|
||||
[state] int legacy_id;
|
||||
[state] bool was_cancelled;
|
||||
[config] String config_owner;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue