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 committed by Gunnar Beutner
parent 1b69a7ff70
commit 521580f76e
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;
};