Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Upgrading extensions to support v1.4
Version 1.4 of the Aristotle Metadata Registry moved shared concept fields from the abstract
concept class to the concrete
_concept class. This change means that shared fields are in the one table and all concepts of a specific type can be searched on and returned, with additional calls to get their child classes. This is useful for tabulation and reporting
This was not easy, and changes the schema of the
_concept table and every class that inherits from
Fortunately, there are a help classes in Aristotle under
util/migrations.py, also at the moment all extensions are written by Sam, so its unlikely that anyone else will get bitten by this. But just in case...
If you have a server on AristotleMDR v1.3 and want to upgrade to v1.4, make sure all extensions have a 1.3->1.4 migration written and then migrate all extensions at the same time.
If you some how upgraded some, then added more and need to upgrade them, rollback the Aristotle migrations to
0014_concept_field_fixer_part2 (you can't downgrade further than this), then remigrate up.