Skip to content
Snippets Groups Projects
Commit 5cab112a authored by elpaule's avatar elpaule
Browse files

change protein feature uniqueness to be pe analysis

parent 544e8654
No related branches found
No related tags found
2 merge requests!181Protein Feature patch,!181Protein Feature patch
......@@ -259,6 +259,17 @@ sub store {
$sth->execute();
if (defined($sth->err)){ # is defined if server sends a message
if ($sth->err eq 0){
warning('SQL warning : ' . $sth->errstr ."\n");
}
elsif ($sth->err){ # not an empty string or zero
warning('SQL error : ' . $sth->errstr ."\n");
}
elsif ($sth->err eq ''){ # SQL info messages
}
}
my $dbID = $self->last_insert_id('protein_feature_id', undef, 'protein_feature');
$feature->adaptor($self);
......
......@@ -935,7 +935,7 @@ CREATE TABLE protein_feature (
external_data TEXT,
hit_description TEXT,
UNIQUE KEY aln_idx (translation_id,hit_name,seq_start,seq_end,hit_start,hit_end),
UNIQUE KEY aln_idx (translation_id,hit_name,seq_start,seq_end,hit_start,hit_end,analysis_id),
PRIMARY KEY (protein_feature_id),
KEY translation_idx (translation_id),
KEY hitname_idx (hit_name),
......
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