Răsfoiți Sursa

Merge branch 'feature-custom-fields' of https://github.com/feuerball11/wekan into devel

Lauri Ojansivu 7 ani în urmă
părinte
comite
642507fb42
1 a modificat fișierele cu 12 adăugiri și 0 ștergeri
  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);
+});