IATI/IATI-Datastore

@hierarchy should not be on the RelatedActivityType codelist

Closed this issue · 2 comments

This line in models.py is incorrect:

hierarchy = sa.Column(codelists.RelatedActivityType.db_type())

The line in question is this one. Presumably this should instead say:

hierarchy = sa.Column(sa.Integer)

…since hierarchy is an integer, rather than a codelist value.

I think this line is similarly wrong. In fact, bc77b21 is useful for determining all the bits that need fixing.