Skip to content

Commit

Permalink
Merge pull request #39 from emrojo/ss441_add_search_indexes_in_iseq_f…
Browse files Browse the repository at this point in the history
…lowcell

Ss441 add search indexes in iseq flowcell
  • Loading branch information
James Glover committed Apr 22, 2016
2 parents 675e6b0 + 8c964d8 commit fae590f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
class AddSearchIndexesToIseqFlowcell < ActiveRecord::Migration
def change
ActiveRecord::Base.transaction do
add_index :iseq_flowcell, [ :id_flowcell_lims, :position, :tag_index ], :name => :index_iseqflowcell__id_flowcell_lims__position__tag_index
add_index :iseq_flowcell, [ :flowcell_barcode, :position, :tag_index ], :name => :index_iseqflowcell__flowcell_barcode__position__tag_index
end
end
end
10 changes: 7 additions & 3 deletions db/structure.sql
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
-- MySQL dump 10.13 Distrib 5.5.21, for osx10.6 (i386)
-- MySQL dump 10.13 Distrib 5.6.13, for osx10.8 (x86_64)
--
-- Host: localhost Database: unified_warehouse_development
-- ------------------------------------------------------
-- Server version 5.5.21
-- Server version 5.6.13

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
Expand Down Expand Up @@ -100,6 +100,8 @@ CREATE TABLE `iseq_flowcell` (
KEY `iseq_flowcell_study_fk` (`id_study_tmp`),
KEY `index_iseq_flowcell_on_id_pool_lims` (`id_pool_lims`),
KEY `index_iseq_flowcell_on_id_library_lims` (`id_library_lims`),
KEY `index_iseqflowcell__id_flowcell_lims__position__tag_index` (`id_flowcell_lims`,`position`,`tag_index`),
KEY `index_iseqflowcell__flowcell_barcode__position__tag_index` (`flowcell_barcode`,`position`,`tag_index`),
CONSTRAINT `iseq_flowcell_sample_fk` FOREIGN KEY (`id_sample_tmp`) REFERENCES `sample` (`id_sample_tmp`) ON DELETE NO ACTION ON UPDATE NO ACTION,
CONSTRAINT `iseq_flowcell_study_fk` FOREIGN KEY (`id_study_tmp`) REFERENCES `study` (`id_study_tmp`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
Expand Down Expand Up @@ -286,7 +288,7 @@ CREATE TABLE `study_users` (
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2016-01-20 17:12:58
-- Dump completed on 2016-04-22 11:43:57
INSERT INTO schema_migrations (version) VALUES ('20141113110635');

INSERT INTO schema_migrations (version) VALUES ('20141113130813');
Expand Down Expand Up @@ -329,3 +331,5 @@ INSERT INTO schema_migrations (version) VALUES ('20151127094701');

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

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

0 comments on commit fae590f

Please sign in to comment.