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

MetaContainer fix

parent 0cd74f60
No related branches found
No related tags found
No related merge requests found
......@@ -253,9 +253,11 @@ sub check_version{
# Check the datbase and versions match
# give warning if they do not.
my $mca = $dba->get_MetaContainerAdaptor();
my $database_version = $mca->get_schema_version();
my $mca = $reg->get_adaptor($dba->species(),$dba->group(),"MetaContainer");
my $database_version = 0;
if(defined($mca)){
$database_version = $mca->get_schema_version();
}
if($database_version == 0){
#try to work out the version
if($dba->dbc->dbname() =~ /^_test_db_/){
......
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