X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=db%2Fstatusnet.sql;h=3f95948e1ed5ede5d9cde05511f78fb49f657021;hb=43454eba363997d44815a90264ca072f1d014f21;hp=4158f0167db2a9f9def64f29ac8fff1fef574382;hpb=b7037a49af97db73b3adc77d3f78ffb0805c7c68;p=quix0rs-gnu-social.git diff --git a/db/statusnet.sql b/db/statusnet.sql index 4158f0167d..3f95948e1e 100644 --- a/db/statusnet.sql +++ b/db/statusnet.sql @@ -458,7 +458,8 @@ create table group_inbox ( created datetime not null comment 'date the notice was created', constraint primary key (group_id, notice_id), - index group_inbox_created_idx (created) + index group_inbox_created_idx (created), + index group_inbox_notice_id_idx (notice_id) ) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_bin; @@ -523,7 +524,8 @@ create table file_to_post ( post_id integer comment 'id of the notice it belongs to' references notice (id), modified timestamp comment 'date this record was modified', - constraint primary key (file_id, post_id) + constraint primary key (file_id, post_id), + index post_id_idx (post_id) ) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_bin;