[Groonga-commit] groonga/gcs [master] Create table for domain automatically if synonyms are updated for the domain

Back to archive index

YUKI Hiroshi null+****@clear*****
Fri Nov 16 19:04:09 JST 2012


YUKI Hiroshi	2012-11-16 19:04:09 +0900 (Fri, 16 Nov 2012)

  New Revision: f5ff550fea048000c2d8421c76bb793270c53428
  https://github.com/groonga/gcs/commit/f5ff550fea048000c2d8421c76bb793270c53428

  Log:
    Create table for domain automatically if synonyms are updated for the domain

  Modified files:
    lib/database/domain.js

  Modified: lib/database/domain.js (+3 -0)
===================================================================
--- lib/database/domain.js    2012-11-16 19:01:33 +0900 (d6b4253)
+++ lib/database/domain.js    2012-11-16 19:04:09 +0900 (6eef392)
@@ -509,6 +509,9 @@ Domain.prototype = {
   },
 
   setupBlankSynonymsTable: function() {
+    if (!this.exists())
+      this.createSync();
+
     if (this.hasSynonymsTableSync()) {
       this.context.commandSync('table_remove', {
         name: this.synonymsTableName
-------------- next part --------------
HTML����������������������������...
下載 



More information about the Groonga-commit mailing list
Back to archive index