Commit 911be8a4 authored by Ian Longden's avatar Ian Longden
Browse files

MetaContainer fix

parent 0cd74f60
......@@ -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_/){
......
Markdown is supported
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