diff options
author | Brion Vibber <brion@pobox.com> | 2010-03-01 14:59:26 -0800 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-03-01 14:59:26 -0800 |
commit | 3c4ead4996fe910ac800d4940f429910faf1bb8b (patch) | |
tree | 0babc46f34999bbdf30eb97e376bcf036c757d74 /db | |
parent | bf95fa92b5cd8969c7f695d1e1636aaca6fb77cd (diff) | |
parent | 7bbdea10327dfd5cd059337e4f2d3d5f21d909da (diff) |
Merge branch 'testing' of gitorious.org:statusnet/mainline into 0.9.x
Conflicts:
db/08to09.sql
locale/statusnet.po
scripts/update_po_templates.php
Diffstat (limited to 'db')
-rw-r--r-- | db/08to09.sql | 4 | ||||
-rw-r--r-- | db/statusnet.sql | 6 |
2 files changed, 8 insertions, 2 deletions
diff --git a/db/08to09.sql b/db/08to09.sql index d5f30a26b..c6c5d7af6 100644 --- a/db/08to09.sql +++ b/db/08to09.sql @@ -140,4 +140,8 @@ create table oauth_application_user ( constraint primary key (profile_id, application_id) ) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_bin; +alter table file_to_post + add index post_id_idx (post_id); +alter table group_inbox + add index group_inbox_notice_id_idx (notice_id); diff --git a/db/statusnet.sql b/db/statusnet.sql index 4158f0167..3f95948e1 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; |