Skip to content
Snippets Groups Projects
Commit d20ae4ca authored by Ian Longden's avatar Ian Longden
Browse files

remove all unmapped_objects with type xref if uploading to make sure old data is not kept

parent 7e66e18d
No related branches found
No related tags found
No related merge requests found
......@@ -2294,6 +2294,10 @@ sub cleanup_sources_file{
open (DEL, ">>$dir/cleanup.sql") || die "Could not open $dir/cleanup.sql\n";
if ($id =~ m/\w/){
print DEL "DELETE unmapped_object ";
print DEL "FROM unmapped_object ";
print DEL "WHERE type = 'xref'\n";
print DEL "DELETE external_synonym ";
print DEL "FROM external_synonym, xref ";
print DEL "WHERE external_synonym.xref_id = xref.xref_id ";
......
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