public interface IERXMigration
| Modifier and Type | Method and Description |
|---|---|
void |
downgrade(EOEditingContext editingContext,
EOAdaptorChannel channel,
EOModel model)
Called when migrating the database from the next version to this version.
|
NSArray<ERXModelVersion> |
modelDependencies()
Returns an array of ModelVersion objects that this migration depends on.
|
void |
upgrade(EOEditingContext editingContext,
EOAdaptorChannel channel,
EOModel model)
Called when migrating the database from the last version to this version.
|
NSArray<ERXModelVersion> modelDependencies()
void upgrade(EOEditingContext editingContext, EOAdaptorChannel channel, EOModel model) throws java.lang.Throwable
editingContext - the editing context you can perform EO operations with.channel - the channel to perform low level operations withmodel - the model being upgradedjava.lang.Throwable - if something failsvoid downgrade(EOEditingContext editingContext, EOAdaptorChannel channel, EOModel model) throws java.lang.Throwable
editingContext - the editing context you can perform EO operations with.channel - the channel to perform low level operations withmodel - the model being downgradedjava.lang.Throwable - if something failsCopyright © 2002 – 2022 Project Wonder.