IERXPostMigration Interface Reference
Inherits
er::extensions::migration::IERXMigration.
Inherited by BugTracker0, BugTracker1, RestExample0, and Uber0.
List of all members.
|
Public Member Functions |
| void | postUpgrade (EOEditingContext editingContext, EOModel model) throws Throwable |
Detailed Description
IERXPostMigration is the interface that you must implement to provide migrations that execute after the database structurally matches
your EOModels. Post upgrades are not versioned independently, so there is an assumption (for now) that if the upgrade
migration itself succeeded, that the postUpgrades will also and can just queue up to execute at the end. This feature is here as a "just in case". Under almost all circumstances, you should be using direct SQL in
your normal
migration classes.
- Author:
- mschrag
Member Function Documentation
| 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.
- Parameters:
-
| editingContext | the editing context you can perform EO operations with. |
| model | the model being upgraded |
- Exceptions:
-
| Throwable | if something fails |
Implemented in Uber0, RestExample0, BugTracker0, and BugTracker1.
The documentation for this interface was generated from the following file: