mirror of
https://github.com/alerta/alerta.git
synced 2025-03-17 14:52:38 +00:00
fix potentially missing attributes
This commit is contained in:
parent
0f79b8bbdc
commit
a318ec59ff
1 changed files with 2 additions and 0 deletions
|
@ -28,4 +28,6 @@ db.alerts.update({status:'EXPIRED'},{$set:{status: 'expired'}},false, true);
|
|||
// add missing attributes
|
||||
db.alerts.update({},{$set:{'trendIndication': 'noChange'}},false,true);
|
||||
db.alerts.update({rawData: {$exists: false}},{$set:{'rawData': null}},false,true);
|
||||
db.alerts.update({moreInfo: {$exists: false}},{$set:{'moreInfo': null}},false,true);
|
||||
db.alerts.update({graphUrls: {$exists: false}},{$set:{'graphUrls': []}},false,true);
|
||||
db.alerts.update({correlatedEvents: {$exists: false}}, {$set: {correlatedEvents: null}},false,true);
|
||||
|
|
Loading…
Reference in a new issue