diff options
author | Maxime Quandalle <maxime@quandalle.com> | 2015-05-14 12:24:16 +0200 |
---|---|---|
committer | Maxime Quandalle <maxime@quandalle.com> | 2015-05-14 12:24:16 +0200 |
commit | fbc4c5e82ef75c6cbf37245c4eec30f4492f9dcc (patch) | |
tree | 63bc5a435bf70ab9ea767e9536b9f298b23bdeec | |
parent | a70ce65c52c3533a7fc828fb55a72e5c82b70949 (diff) | |
download | wekan-fbc4c5e82ef75c6cbf37245c4eec30f4492f9dcc.tar.gz wekan-fbc4c5e82ef75c6cbf37245c4eec30f4492f9dcc.tar.bz2 wekan-fbc4c5e82ef75c6cbf37245c4eec30f4492f9dcc.zip |
Disable collection2 transformations in migration functions
Fixes #156.
-rw-r--r-- | server/migrations.js | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/server/migrations.js b/server/migrations.js index ce4724cc..2a8e338c 100644 --- a/server/migrations.js +++ b/server/migrations.js @@ -9,9 +9,15 @@ // that would work at the time we write the migration but would break in the // future when we'll update again the concerned collection schema. // -// To prevent this bug we always have to set the `validate` option to false. We -// generally use the shorthandlers defined below. -var noValidate = { validate: false }; +// To prevent this bug we always have to disable the schema validation and +// argument transformations. We generally use the shorthandlers defined below. +var noValidate = { + validate: false, + filter: false, + autoConvert: false, + removeEmptyStrings: false, + getAutoValues: false +}; var noValidateMulti = _.extend(noValidate, { multi: true }); Migrations.add('board-background-color', function() { |