summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2019-03-07 02:03:34 +0200
committerLauri Ojansivu <x@xet7.org>2019-03-07 02:03:34 +0200
commit97a9e92969aa1f789fe172790b98dc44c28ed928 (patch)
tree18d5dd11444937680fe15b3ee92513e6a516e623
parentc5ca414e8fc9497a9321f3cb55f23477a1093da6 (diff)
parenta338e937e508568d1f6a15c5464126d30ef69a7d (diff)
downloadwekan-97a9e92969aa1f789fe172790b98dc44c28ed928.tar.gz
wekan-97a9e92969aa1f789fe172790b98dc44c28ed928.tar.bz2
wekan-97a9e92969aa1f789fe172790b98dc44c28ed928.zip
Merge remote-tracking branch 'andresmanelli/edge' into edge
-rw-r--r--server/migrations.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/server/migrations.js b/server/migrations.js
index cb64b7e8..eeb2d5ea 100644
--- a/server/migrations.js
+++ b/server/migrations.js
@@ -517,3 +517,11 @@ Migrations.add('add-templates', () => {
});
});
});
+
+Migrations.add('fix-circular-reference', () => {
+ Cards.find().forEach((card) => {
+ if (card.parentId === card._id) {
+ Cards.update(card._id, {$set: {parentId: ''}}, noValidateMulti);
+ }
+ });
+});