YUKI Hiroshi
null+****@clear*****
Wed Nov 21 20:49:24 JST 2012
YUKI Hiroshi 2012-11-21 20:49:24 +0900 (Wed, 21 Nov 2012) New Revision: 4c0ac7a3849afd01d44271b524b5553eabdb8008 https://github.com/groonga/gcs/commit/4c0ac7a3849afd01d44271b524b5553eabdb8008 Log: Don't set not-user-defined index field options if the type is changed Modified files: lib/database/index-field.js Modified: lib/database/index-field.js (+3 -3) =================================================================== --- lib/database/index-field.js 2012-11-21 20:45:24 +0900 (6798587) +++ lib/database/index-field.js 2012-11-21 20:49:24 +0900 (0825752) @@ -527,9 +527,9 @@ IndexField.prototype = { deleteSync: function() { // backup information for re-creation this._type = this.type; - this._facetEnabled = this.facetEnabled; - this._resultEnabled = this.resultEnabled; - this._searchEnabled = this.searchEnabled; + this._facetEnabled = this.hasFacetEnabled ? this.facetEnabled : undefined; + this._resultEnabled = this.hasResultEnabled ? this.resultEnabled : undefined; + this._searchEnabled = this.hasSearchEnabled ? this.searchEnabled : undefined; this._defaultSearchField = this.defaultSearchField; this._createdAt = this.createdAt; this._updatedAt = this.updatedAt; -------------- next part -------------- HTML����������������������������... 下载