Skip to content
Snippets Groups Projects
Commit d9ebb78f authored by James Allen's avatar James Allen
Browse files

Update schema with new dna_align_feature_attrib table

parent c3be4b93
No related branches found
No related tags found
2 merge requests!144New attrib table for dna_align_features,!144New attrib table for dna_align_features
......@@ -654,6 +654,31 @@ CREATE TABLE dna_align_feature (
) COLLATE=latin1_swedish_ci ENGINE=MyISAM MAX_ROWS=100000000 AVG_ROW_LENGTH=80;
/**
@table dna_align_feature_attrib
@desc Enables storage of attributes that relate to DNA sequence alignments.
@column dna_align_feature_id Foreign key references to the @link dna_align_feature table.
@column attrib_type_id Foreign key references to the @link attrib_type table.
@column value Attribute value.
@see dna_align_feature
*/
CREATE TABLE dna_align_feature_attrib (
dna_align_feature_id INT(10) UNSIGNED NOT NULL,
attrib_type_id SMALLINT(5) UNSIGNED NOT NULL,
value TEXT NOT NULL,
UNIQUE KEY dna_align_feature_attribx (dna_align_feature_id, attrib_type_id, value(500)),
KEY dna_align_feature_idx (dna_align_feature_id),
KEY type_val_idx (attrib_type_id, value(40)),
KEY val_only_idx (value(40))
) COLLATE=latin1_swedish_ci ENGINE=MyISAM;
/**
@table exon
@desc Stores data about exons. Associated with transcripts via exon_transcript. Allows access to contigs seq_regions.
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment