Просмотр исходного кода

Revert "add from_env to the config schema"

This reverts commit 49b9137
utsushiiro 7 лет назад
Родитель
Сommit
9d1b08ee27
1 измененных файлов с 1 добавлено и 8 удалено
  1. 1 8
      src/server/models/config.js

+ 1 - 8
src/server/models/config.js

@@ -18,14 +18,7 @@ module.exports = function(crowi) {
   configSchema = new mongoose.Schema({
     ns: { type: String, required: true, index: true },
     key: { type: String, required: true, index: true },
-    value: { type: String, required: true },
-    from_env: {type: Boolean, required: true}
-  });
-
-  configSchema.index({
-    ns: 1,
-    key: 1,
-    from_env: 1
+    value: { type: String, required: true }
   });
 
   function validateCrowi() {