null+****@clear*****
null+****@clear*****
2012年 8月 3日 (金) 18:52:17 JST
SHIMODA Hiroshi 2012-08-03 18:52:17 +0900 (Fri, 03 Aug 2012) New Revision: 301c37104b761dd912d6f5ecb4648c7644ba3e65 https://github.com/groonga/gcs/commit/301c37104b761dd912d6f5ecb4648c7644ba3e65 Log: Accept --delete option by cs-configure-fields Modified files: bin/cs-configure-fields Modified: bin/cs-configure-fields (+9 -5) =================================================================== --- bin/cs-configure-fields 2012-08-03 18:49:03 +0900 (c2ec518) +++ bin/cs-configure-fields 2012-08-03 18:52:17 +0900 (50138ad) @@ -46,9 +46,13 @@ if (!program.type) { } var field = domain.getIndexField(program.name); -field.type = program.type; -field.createSync(); - -console.log('Updated 1 Index Field:'); -console.log(field.name + ' ' + field.state + ' ' + field.type + '()'); +if (program.delete) { + field.deleteSync(); + console.log('Updated 1 Index Field:'); +} else { + field.type = program.type; + field.createSync(); + console.log('Updated 1 Index Field:'); + console.log(field.name + ' ' + field.state + ' ' + field.type + ' ()'); +} -------------- next part -------------- HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B... 下載