Skip to content

Commit

Permalink
[api] add db index to ProjectLogEntry#datetime
Browse files Browse the repository at this point in the history
  • Loading branch information
ancorgs authored and coolo committed Nov 27, 2013
1 parent b50230f commit 048c09c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
@@ -0,0 +1,5 @@
class AddDatetimeIndexToLogEntries < ActiveRecord::Migration
def change
add_index :project_log_entries, :datetime
end
end
3 changes: 3 additions & 0 deletions src/api/db/structure.sql
Expand Up @@ -660,6 +660,7 @@ CREATE TABLE `project_log_entries` (
KEY `index_project_log_entries_on_package_name` (`package_name`),
KEY `index_project_log_entries_on_bs_request_id` (`bs_request_id`),
KEY `index_project_log_entries_on_event_type` (`event_type`),
KEY `index_project_log_entries_on_datetime` (`datetime`),
CONSTRAINT `project_log_entries_ibfk_1` FOREIGN KEY (`project_id`) REFERENCES `projects` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

Expand Down Expand Up @@ -1391,6 +1392,8 @@ INSERT INTO schema_migrations (version) VALUES ('20131126074753');

INSERT INTO schema_migrations (version) VALUES ('20131126205430');

INSERT INTO schema_migrations (version) VALUES ('20131127091624');

INSERT INTO schema_migrations (version) VALUES ('21');

INSERT INTO schema_migrations (version) VALUES ('22');
Expand Down

0 comments on commit 048c09c

Please sign in to comment.