Skip to content
Snippets Groups Projects
Commit 5ddf7bfd authored by Magali Ruffier's avatar Magali Ruffier
Browse files

unique key prevents insertion of duplicates

parent 6399c37b
No related branches found
No related tags found
2 merge requests!343ENSCORESW-2967: update schema to 96,!343ENSCORESW-2967: update schema to 96
...@@ -554,7 +554,7 @@ $multi->restore(); ...@@ -554,7 +554,7 @@ $multi->restore();
my $no_desc_id_again = $dbEntryAdaptor->store($entry_no_desc, $gene->dbID(), 'Gene'); my $no_desc_id_again = $dbEntryAdaptor->store($entry_no_desc, $gene->dbID(), 'Gene');
is($no_desc_id_again, $no_desc_id, 'Checking the ID is consistent between store() invocations'); is($no_desc_id_again, $no_desc_id, 'Checking the ID is consistent between store() invocations');
is_rows(1, $db, 'xref', 'where description = ?', [q{}]); is_rows(1, $db, 'xref', 'where description = ?', [q{}]);
is_rows(2, $db, 'object_xref'); is_rows(1, $db, 'object_xref');
is_rows(0, $db, 'object_xref', 'where xref_id =?', [0]); is_rows(0, $db, 'object_xref', 'where xref_id =?', [0]);
$multi->restore('core', 'xref', 'object_xref'); $multi->restore('core', 'xref', 'object_xref');
......
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