浏览代码

Add migrations for requestedBy and assignedBy fields.

RJevnikar 7 年之前
父节点
当前提交
ea109cfdd7
共有 1 个文件被更改,包括 25 次插入0 次删除
  1. 25 0
      server/migrations.js

+ 25 - 0
server/migrations.js

@@ -231,3 +231,28 @@ Migrations.add('add-custom-fields-to-cards', () => {
     },
   }, noValidateMulti);
 });
+
+Migrations.add('add-requester-field', () => {
+  Cards.update({
+    requestedBy: {
+      $exists: false,
+    },
+  }, {
+    $set: {
+      requestedBy:'',
+    },
+  }, noValidateMulti);
+});
+
+Migrations.add('add-assigner-field', () => {
+  Cards.update({
+    assignedBy: {
+      $exists: false,
+    },
+  }, {
+    $set: {
+      assignedBy:'',
+    },
+  }, noValidateMulti);
+});
+