Upgrading extensions to support v1.4

Samuel Spencer edited this page Aug 26, 2016 · 1 revision

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 concept.

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.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.