summaryrefslogtreecommitdiffstats
path: root/models/boards.js
diff options
context:
space:
mode:
authorboeserwolf <github@noxware.de>2020-04-19 10:48:44 +0300
committerboeserwolf <github@noxware.de>2020-04-19 10:48:44 +0300
commit2400c910135dbcdddd82954951fc3a970748af55 (patch)
treed0466314bc481a8e02a22a0e7bfaa0305e6a97cc /models/boards.js
parentf583645744be50cba72a3e80ba2d916abb84eaba (diff)
downloadwekan-2400c910135dbcdddd82954951fc3a970748af55.tar.gz
wekan-2400c910135dbcdddd82954951fc3a970748af55.tar.bz2
wekan-2400c910135dbcdddd82954951fc3a970748af55.zip
Add sort field to boards model
Diffstat (limited to 'models/boards.js')
-rw-r--r--models/boards.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/models/boards.js b/models/boards.js
index 35ee1a36..fba690a7 100644
--- a/models/boards.js
+++ b/models/boards.js
@@ -493,6 +493,14 @@ Boards.attachSchema(
type: String,
defaultValue: 'board',
},
+ sort: {
+ /**
+ * Sort value
+ */
+ type: Number,
+ decimal: true,
+ defaultValue: -1,
+ },
}),
);