Inherited by ERAttachment0, ERAttachment1, ERAttachmentMigration, BugTracker0, BugTracker1, ERCoreBusinessLogic0, ERXTest0, RestExample0, ERTaggable0, ERTaggableEntity0, Uber0, Uber1, Movies0, and Movies3.

Public Member Functions | |
| abstract void | downgrade (EOEditingContext editingContext, ERXMigrationDatabase database) throws Throwable |
| void | downgrade (EOEditingContext editingContext, EOAdaptorChannel channel, EOModel model) throws Throwable |
| NSArray< String > | languages () |
| NSArray< ERXModelVersion > | modelDependencies () |
| abstract void | upgrade (EOEditingContext editingContext, ERXMigrationDatabase database) throws Throwable |
| void | upgrade (EOEditingContext editingContext, EOAdaptorChannel channel, EOModel model) throws Throwable |
Static Public Attributes | |
| static final boolean | ALLOWS_NULL = true |
| static final boolean | NOT_NULL = false |
Protected Member Functions | |
| Migration (NSArray languages) | |
| Migration () | |
Private Attributes | |
| NSArray< String > | _languages |
| Migration | ( | ) | [protected] |
| Migration | ( | NSArray | languages | ) | [protected] |
| abstract void downgrade | ( | EOEditingContext | editingContext, | |
| ERXMigrationDatabase | database | |||
| ) | throws Throwable [pure virtual] |
| editingContext | the editing context | |
| database | the migration database |
| Throwable | if anything goes wrong |
Implemented in Uber0, Uber1, RestExample0, BugTracker0, BugTracker1, ERAttachment0, ERAttachment1, ERAttachmentMigration, ERCoreBusinessLogic0, Movies0, Movies1, Movies3, ERTaggable0, ERTaggableEntity0, and ERXTest0.
| void downgrade | ( | EOEditingContext | editingContext, | |
| EOAdaptorChannel | channel, | |||
| EOModel | model | |||
| ) | throws Throwable |
Called when migrating the database from the next version to this version. For instance if this is AuthModel1, it will be called to migrate from version 1 back to version 0.
If this is the lowest migration you support, downgrade should throw an ERXMigrationFailedException.
| editingContext | the editing context you can perform EO operations with. | |
| channel | the channel to perform low level operations with | |
| model | the model being downgraded |
| Throwable | if something fails |
Implements IERXMigration.
| NSArray<String> languages | ( | ) |
| NSArray<ERXModelVersion> modelDependencies | ( | ) |
Overridden to return null by default
Implements IERXMigration.
Reimplemented in Uber0, Uber1, RestExample0, BugTracker0, BugTracker1, ERAttachmentMigration, ERCoreBusinessLogic0, Movies0, Movies1, Movies3, and ERTaggableEntity0.
| abstract void upgrade | ( | EOEditingContext | editingContext, | |
| ERXMigrationDatabase | database | |||
| ) | throws Throwable [pure virtual] |
| editingContext | the editing context | |
| database | the migration database |
| Throwable | if anything goes wrong |
Implemented in Uber0, Uber1, RestExample0, BugTracker0, BugTracker1, ERAttachment0, ERAttachment1, ERAttachmentMigration, ERCoreBusinessLogic0, Movies0, Movies3, ERTaggable0, ERTaggableEntity0, and ERXTest0.
| void upgrade | ( | EOEditingContext | editingContext, | |
| EOAdaptorChannel | channel, | |||
| EOModel | model | |||
| ) | throws Throwable |
Called when migrating the database from the last version to this version. For instance if this is AuthModel1, it will be called to migrate from version 0 to version 1.
| editingContext | the editing context you can perform EO operations with. | |
| channel | the channel to perform low level operations with | |
| model | the model being upgraded |
| Throwable | if something fails |
Implements IERXMigration.
NSArray<String> _languages [private] |
final boolean ALLOWS_NULL = true [static] |
final boolean NOT_NULL = false [static] |
1.5.8