cubicweb-genomics #3529495 error while migrating from 0.3.0 [open]

While upgrading our localizer application from cubicweb-genomics 0.3.0 to cubicweb-genomics 0.6.0:

...
Execute command: drop_relation_definition('CghResult', 'related_gene', 'Gene') ? [Y/n/a(bort)/s(hell)]:
Execute command: add_relation_definition('CghResult', 'genomic_region', 'GenomicRegion') ? [Y/n/a(bort)/s(hell)]:
warning: relation CghResult genomic_region GenomicRegion is already known, skip addition
Execute command: add_relation_definition('Mutation', 'chromosomes', 'Chromosome') ? [Y/n/a(bort)/s(hell)]:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/cubicweb/cwctl.py", line 166, in run_arg
status = cmdmeth(appid)
File "/usr/lib/python2.7/dist-packages/cubicweb/cwctl.py", line 792, in upgrade_instance
mih.migrate(vcconf, reversed(toupgrade), self.config)
File "/usr/lib/python2.7/dist-packages/cubicweb/server/migractions.py", line 152, in migrate
super(ServerMigrationHelper, self).migrate(vcconf, toupgrade, options)
File "/usr/lib/python2.7/dist-packages/cubicweb/migration.py", line 181, in migrate
self.cmd_process_script(script)
File "/usr/lib/python2.7/dist-packages/cubicweb/server/migractions.py", line 157, in cmd_process_script
migrscript, funcname, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/cubicweb/migration.py", line 350, in cmd_process_script
execfile(migrscript, scriptlocals)
File "/home/dp165978/cubicweb/cubes/genomics/migration/0.4.0_Any.py", line 33, in <module>
add_relation_definition('Mutation', 'chromosomes', 'Chromosome')
File "/usr/lib/python2.7/dist-packages/cubicweb/migration.py", line 137, in <lambda>
meth=meth)
File "/usr/lib/python2.7/dist-packages/cubicweb/migration.py", line 203, in interact
return meth(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/cubicweb/server/migractions.py", line 1119, in cmd_add_relation_definition
rdef = self._get_rdef(rschema, subjtype, objtype)
File "/usr/lib/python2.7/dist-packages/cubicweb/server/migractions.py", line 1127, in _get_rdef
return self._set_rdef_eid(rschema.rdefs[(subjtype, objtype)])
KeyError: ('Mutation', 'Chromosome')
instance localizer not upgraded: ('Mutation', 'Chromosome')

prioritynormal
typebug
done in<not specified>
closed by<not specified>