summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2018-10-12 23:04:09 +0300
committerLauri Ojansivu <x@xet7.org>2018-10-12 23:04:09 +0300
commit00eeb8633286bf8e2bdc1816ec16ff49ff6caafb (patch)
tree27a486a04d3197a42d75188013fd20dc37b38c7e
parent25ab20bcb4475dca46f0bca6712ba4dff906ba19 (diff)
downloadwekan-00eeb8633286bf8e2bdc1816ec16ff49ff6caafb.tar.gz
wekan-00eeb8633286bf8e2bdc1816ec16ff49ff6caafb.tar.bz2
wekan-00eeb8633286bf8e2bdc1816ec16ff49ff6caafb.zip
- Remove broken customFields references.
Thanks to Clement87 and Akuket !
-rw-r--r--server/migrations.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/server/migrations.js b/server/migrations.js
index 5a4126d7..86c95fbb 100644
--- a/server/migrations.js
+++ b/server/migrations.js
@@ -342,3 +342,11 @@ Migrations.add('remove-tag', () => {
},
}, noValidateMulti);
});
+
+Migrations.add('remove-customFields-references-broken', () => {
+ Cards.update(
+ {'customFields.$value': null},
+ {$pull: {customFields: {value: null}}},
+ noValidateMulti,
+ );
+});