X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=init.js;h=0370eaa05c43a8c87925dc6c528fde875954b059;hb=f2860f2ea07bc51164a35d3a4c8a31037f9628c5;hp=d8729e506197ea1655ffa9282e7e5bc36a117206;hpb=51bd679fb691da21e9d380f33ef27bbbcdc52430;p=webchat%2FWebChat.git diff --git a/init.js b/init.js index d8729e5..0370eaa 100644 --- a/init.js +++ b/init.js @@ -45,11 +45,11 @@ if("lastmodified" in config.alias) async.waterfall([ function(next){ - var query = GetDropTableQuery("list"); + var query = GetDropTableQuery("profilelist"); pool.query(query,null,next); }, function(result,next){ - var query = GetCreateQuery(config.alias,"list"); + var query = GetCreateQuery(config.alias,"profilelist"); pool.query(query,null,next); }, function(result,next){ @@ -117,6 +117,8 @@ function GetCreateQuery(def,tablename) var result = "CREATE TABLE " + tablename + "("; for(key in def) { + if(typeof(def[key].nodefinetable) != "undefined" && def[key].nodefinetable) + continue; switch(def[key].type) { case "text":