|
@@ -1033,3 +1033,15 @@ Migrations.add('add-description-text-allowed', () => {
|
|
noValidateMulti,
|
|
noValidateMulti,
|
|
);
|
|
);
|
|
});
|
|
});
|
|
|
|
+
|
|
|
|
+Migrations.add('add-sort-field-to-boards', () => {
|
|
|
|
+ Boards.find().forEach((board, index) => {
|
|
|
|
+ if (!board.hasOwnProperty('sort')) {
|
|
|
|
+ Boards.direct.update(
|
|
|
|
+ board._id,
|
|
|
|
+ { $set: { sort: index } },
|
|
|
|
+ noValidate
|
|
|
|
+ );
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+});
|