-
Notifications
You must be signed in to change notification settings - Fork 23
アップデート
MoritakaSoma edited this page Aug 10, 2016
·
5 revisions
English/日本語
CouchDBのビューをアップデートする必要があります。
CouchDBのUIから、該当のリポジトリを選択、Design Document から、"_design/_repo" をえらび、ソースを表示ダブルクリックで編集モードに入り、
"childrenNames": {
"map": "function(doc) {var result={}; result[doc.name]=doc._id; if (doc.type == 'cmis:document' || doc.type == 'cmis:folder') emit(doc.parentId, doc.name);}"
}
を
"childrenNames": {
"map": "function(doc) {var result={}; result[doc.name]=doc._id; if (doc.type == 'cmis:document' && doc.latestVersion || doc.type == 'cmis:folder') emit(doc.parentId, doc.name);}"
}
に変更し、保存します。
CouchDBに新しいビューを追加しないとフォルが作成できません。
CouchDBのUIから、該当のリポジトリを選択、Design Document から、"_design/_repo" をえらび、ソースを表示ダブルクリックで編集モードに入り、
"changes": {
"map": "function(doc) { if (doc.type == 'change') emit(doc._id, doc) }"
}
の後ろに
,
"childrenNames": {
"map": "function(doc) {var result={}; result[doc.name]=doc._id; if (doc.type == 'cmis:document' || doc.type == 'cmis:folder') emit(doc.parentId, doc.name);}"
}
を追加し、保存します。