summaryrefslogtreecommitdiffstats
path: root/server/migrations.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/migrations.js')
-rw-r--r--server/migrations.js26
1 files changed, 13 insertions, 13 deletions
diff --git a/server/migrations.js b/server/migrations.js
index 5655bd1d..85d10c8e 100644
--- a/server/migrations.js
+++ b/server/migrations.js
@@ -246,19 +246,6 @@ Migrations.add('add-checklist-items', () => {
});
});
-Migrations.add('add-profile-view', () => {
- Users.find().forEach(user => {
- if (!user.hasOwnProperty('profile.boardView')) {
- // Set default view
- Users.direct.update(
- { _id: user._id },
- { $set: { 'profile.boardView': 'board-view-lists' } },
- noValidate,
- );
- }
- });
-});
-
Migrations.add('add-card-types', () => {
Cards.find().forEach(card => {
Cards.direct.update(
@@ -1044,3 +1031,16 @@ Migrations.add('add-sort-field-to-boards', () => {
}
});
});
+
+Migrations.add('add-default-profile-view', () => {
+ Users.find().forEach(user => {
+ if (!user.hasOwnProperty('profile.boardView')) {
+ // Set default view
+ Users.direct.update(
+ { _id: user._id },
+ { $set: { 'profile.boardView': 'board-view-swimlanes' } },
+ noValidate,
+ );
+ }
+ });
+});