Adds a migration to the ordered list of migrations applied to the metanode.
The function provided is expected to be implemented to call VRSetMigration functions. (VRSetMigrationUp, VRSetMigrationDown, VRSetMigrationUpgradeNode, VRSetMigrationDowngradeNode)
The number of calls to this function during metanode creation defines the version number of the metanode.
Migrations can only be added to uninstantiated metanodes.
- Parameters
metaNode | handle to the metanode to modify |
func | function to call to register the migration specifics. This function is called immediately. |
- Returns
0 if the migration is added successfully.