OSDN Git Service
(root)
/
webchat
/
WebChat.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a9d0321
)
メッセージの文字化けを修正した
author
konekoneko
<jbh03215@hotmail.co.jp>
Sun, 5 May 2013 05:46:49 +0000
(14:46 +0900)
committer
konekoneko
<jbh03215@hotmail.co.jp>
Sun, 5 May 2013 05:46:49 +0000
(14:46 +0900)
init.js
patch
|
blob
|
history
init.sql
patch
|
blob
|
history
diff --git
a/init.js
b/init.js
index
a94e78b
..
d8729e5
100644
(file)
--- a/
init.js
+++ b/
init.js
@@
-1,4
+1,4
@@
-var util = require("util");
+
var util = require("util");
var config = require("./configure.js");
var async = require("async");
var config = require("./configure.js");
var async = require("async");
@@
-14,33
+14,33
@@
var pool = new MySQLPool({
if("name_hash" in config.alias)
{
if(config.alias["name_hash"].type != "unsignednumber")
if("name_hash" in config.alias)
{
if(config.alias["name_hash"].type != "unsignednumber")
- throw "name_hash
???unsignednumber??????????
";
+ throw "name_hash
の型はunsignednumberでなければなりません
";
}else{
}else{
- throw "name_hash
?????????
";
+ throw "name_hash
が存在しません
";
}
if("name" in config.alias)
{
if(config.alias["name"].type != "text")
}
if("name" in config.alias)
{
if(config.alias["name"].type != "text")
- throw "name
???text??????????
";
+ throw "name
の型はtextでなければなりません
";
}else{
}else{
- throw "name
?????????
";
+ throw "name
が存在しません
";
}
if("password" in config.alias)
{
if(config.alias["password"].type != "password")
}
if("password" in config.alias)
{
if(config.alias["password"].type != "password")
- throw "name
???password??????????
";
+ throw "name
の型はpasswordでなければなりません
";
}else{
}else{
- throw "password
?????????
";
+ throw "password
が存在しません
";
}
if("lastmodified" in config.alias)
{
if(config.alias["lastmodified"].type != "datetime")
}
if("lastmodified" in config.alias)
{
if(config.alias["lastmodified"].type != "datetime")
- throw "lastmodified
???text??????????
";
+ throw "lastmodified
の型はtextでなければなりません
";
}else{
}else{
- throw "lastmodified
?????????
";
+ throw "lastmodified
が存在しません
";
}
async.waterfall([
}
async.waterfall([
diff --git
a/init.sql
b/init.sql
index
3d2bd2f
..
e41a128
100644
(file)
--- a/
init.sql
+++ b/
init.sql
@@
-1,6
+1,8
@@
grant select,
insert,
delete,
grant select,
insert,
delete,
+ create,
+ drop,
update on *.* to user identified by 'user';
flush privileges;
CREATE DATABASE IF NOT EXISTS webchat DEFAULT CHARSET=utf8;
update on *.* to user identified by 'user';
flush privileges;
CREATE DATABASE IF NOT EXISTS webchat DEFAULT CHARSET=utf8;