Browse Source

Migration Test

IgnatzHome 7 năm trước cách đây
mục cha
commit
4600e4e237
1 tập tin đã thay đổi với 12 bổ sung0 xóa
  1. 12 0
      server/migrations.js

+ 12 - 0
server/migrations.js

@@ -219,3 +219,15 @@ Migrations.add('add-profile-view', () => {
     );
   });
 });
+
+Migrations.add('add-custom-fields-to-cards', () => {
+  Cards.update({
+    customFields: {
+      $exists: false,
+    },
+  }, {
+    $set: {
+      customFields:[],
+    },
+  }, noValidateMulti);
+});