OSDN Git Service

update table define
authorISHIKAWA Mutsumi <ishikawa@hanzubon.jp>
Thu, 18 Oct 2012 06:38:32 +0000 (15:38 +0900)
committerISHIKAWA Mutsumi <ishikawa@hanzubon.jp>
Thu, 18 Oct 2012 06:38:32 +0000 (15:38 +0900)
mubot.mysql

index d911302..cea6170 100644 (file)
@@ -13,7 +13,8 @@ CREATE TABLE posts (
 
 create index posts_fb_post_id_idx on posts(fb_post_id);
 create index posts_post_time_idx on posts(post_time);
-create fulltext index submitter_idx on posts(submitter);
-create fulltext index uri_idx on posts(uri);
-create fulltext index msg_idx on posts(prefix,path,suffix);
-create fulltext index msg_full_idx on posts(prefix,uri,suffix);
+create index submitter_idx on posts(submitter(64));
+create index uri_idx on posts(uri(1024));
+create fulltext index full_submitter_idx on posts(submitter);
+create fulltext index full_msg_path_idx on posts(prefix,path,suffix);
+create fulltext index full_msg_idx on posts(prefix,uri,suffix);