atomica.migration.Migration

class atomica.migration.Migration(classname, original_version, new_version, description, fcn, date=None, update_required=False)[source]

Bases: object

Class representation of a migration

This class stores a migration function together with all required metadata. It would normally be instantiated using the migration decorator, which also registers the migration by adding it to the migrations list

Parameters:
  • original_version

  • new_version

  • description

  • fcn

  • date

  • update_required – Flag if dependent content in the object might change e.g. if redoing a calculation might produce different results

Methods

upgrade