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:
Michael Friedrich 2016-03-23 14:03:44 +01:00
parent 98e1d70dab
commit 0447e81d99
2 changed files with 2 additions and 2 deletions

View File

@ -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;
};
}

View File

@ -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;
};