Skip to content
Snippets Groups Projects
Commit b650956a authored by Glenn Proctor's avatar Glenn Proctor
Browse files

Don't delete the GeneGC entry from attrib_type, since if it is deleted it will...

Don't delete the GeneGC entry from attrib_type, since if it is deleted it will be re-created later in the script with a different attrib_type_id, which will be inconsistent with that in the attrib_type.txt file.
parent 90b8c06a
No related branches found
No related tags found
No related merge requests found
......@@ -52,7 +52,7 @@ for my $dbname ( @dbnames ) {
if (!$nodelete) {
print STDERR "Deleting existing 'Frameshift' transcript attributes\n";
my $dsth = $db_adaptor->dbc()->prepare("DELETE ta, at FROM transcript_attrib ta, attrib_type at WHERE at.attrib_type_id=ta.attrib_type_id AND at.code='Frameshift'");
my $dsth = $db_adaptor->dbc()->prepare("DELETE ta FROM transcript_attrib ta, attrib_type at WHERE at.attrib_type_id=ta.attrib_type_id AND at.code='Frameshift'");
$dsth->execute();
}
......
......@@ -81,7 +81,7 @@ sub delete_existing {
my $dba = shift;
print STDERR "Deleting existing 'GeneGC' gene attributes\n";
my $dsth = $dba->dbc()->prepare("DELETE ga, at FROM gene_attrib ga, attrib_type at WHERE at.attrib_type_id=ga.attrib_type_id AND at.code='GeneGC'");
my $dsth = $dba->dbc()->prepare("DELETE ga FROM gene_attrib ga, attrib_type at WHERE at.attrib_type_id=ga.attrib_type_id AND at.code='GeneGC'");
$dsth->execute();
}
......
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