armi.migration.base module
Base migration classes.
A classic migration takes a file name, read the files, migrates the
data, and re-writes the file. Some migrations need to happen live
on a stream. For example, if an old/invalid input file is being read
in from an old database. The migration class defined here
chooses this behavior based on whether the stream or path
variables are given in the constructor.
- class armi.migration.base.Migration(stream=None, path=None)[source]
Bases:
objectGeneric migration.
To implement a concrete Migration, one must often only implement the
_applyToStreammethod.- fromVersion = 'x.x.x'
- toVersion = 'x.x.x'
- class armi.migration.base.BlueprintsMigration(stream=None, path=None)[source]
Bases:
MigrationMigration for blueprints input.