
Public Member Functions | |
| void | downgrade (EOEditingContext editingContext, ERXMigrationDatabase database) throws Throwable |
| NSArray< ERXModelVersion > | modelDependencies () |
| void | postUpgrade (EOEditingContext editingContext, EOModel model) throws Throwable |
| void | upgrade (EOEditingContext editingContext, ERXMigrationDatabase database) throws Throwable |
| void downgrade | ( | EOEditingContext | editingContext, | |
| ERXMigrationDatabase | database | |||
| ) | throws Throwable [virtual] |
| editingContext | the editing context | |
| database | the migration database |
| Throwable | if anything goes wrong |
Implements ERXMigrationDatabase.Migration.
| NSArray<ERXModelVersion> modelDependencies | ( | ) |
Overridden to return null by default
Reimplemented from ERXMigrationDatabase.Migration.
| void postUpgrade | ( | EOEditingContext | editingContext, | |
| EOModel | model | |||
| ) | throws Throwable |
Called after executing all of the upgrade() migrations. At this point, the databases match the current EOModel, so it is safe to perform EO operations.
| editingContext | the editing context you can perform EO operations with. | |
| model | the model being upgraded |
| Throwable | if something fails |
Implements IERXPostMigration.
| void upgrade | ( | EOEditingContext | editingContext, | |
| ERXMigrationDatabase | database | |||
| ) | throws Throwable [virtual] |
| editingContext | the editing context | |
| database | the migration database |
| Throwable | if anything goes wrong |
Implements ERXMigrationDatabase.Migration.
1.5.8