Login
Back to bricks list
Introduction Version

BrickMigration

Functions

MIGRATE - @classmethod

Must override this class method to write the migration code

The class must be decorated with @brick_migration decorator to be executed. The version used in the @brick_migration must be unique, there can't be 2 migration with the same version for the same brick

Parameters:
NameTypeDefault valueDescription
from_versionVersion Previous version
to_versionVersion