| Function | registerUpgrader | Register a callable which can perform a schema upgrade between two |
| Function | registerAttributeCopyingUpgrader | Register an upgrader for itemType, from
fromVersion to toVersion,
|
| Function | registerDeletionUpgrader | Register an upgrader for itemType, from
fromVersion to toVersion,
|
| Function | upgradeAllTheWay | Undocumented |
| Parameters | upgrader | A one-argument callable which will upgrade an object. It is invoked with an instance of the old version of the object. |
| typeName | The database typename for which this is an upgrader. | |
| oldVersion | The version from which this will upgrade. | |
| newVersion | The version tow hich this will upgrade. This must be exactly one
greater than oldVersion.
|
itemType, from
fromVersion to toVersion, which will copy all
attributes from the legacy item to the new item. If postCopy is provided,
it will be called with the new item after upgrading.
| Parameters | itemType | axiom.item.Item
subclass
|
| postCopy | a callable of one argument | |
| Returns | None | |
itemType, from
fromVersion to toVersion, which will delete the
item from the database.
| Parameters | itemType | axiom.item.Item
subclass
|
| Returns | None | |