er.bugtracker.migrations
Class BugTracker1
java.lang.Object
er.extensions.migration.ERXMigrationDatabase.Migration
er.bugtracker.migrations.BugTracker1
- All Implemented Interfaces:
- IERXMigration, IERXPostMigration
public class BugTracker1
- extends ERXMigrationDatabase.Migration
- implements IERXPostMigration
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BugTracker1
public BugTracker1()
modelDependencies
public NSArray<ERXModelVersion> modelDependencies()
- Description copied from class:
ERXMigrationDatabase.Migration
- Overridden to return null by default
- Specified by:
modelDependencies in interface IERXMigration- Overrides:
modelDependencies in class ERXMigrationDatabase.Migration
- Returns:
- an array of model versions that this migration depends on
downgrade
public void downgrade(EOEditingContext editingContext,
ERXMigrationDatabase database)
throws Throwable
- Specified by:
downgrade in class ERXMigrationDatabase.Migration
- Parameters:
editingContext - the editing contextdatabase - the migration database
- Throws:
Throwable - if anything goes wrong- See Also:
IERXMigration.downgrade
upgrade
public void upgrade(EOEditingContext editingContext,
ERXMigrationDatabase database)
throws Throwable
- Specified by:
upgrade in class ERXMigrationDatabase.Migration
- Parameters:
editingContext - the editing contextdatabase - the migration database
- Throws:
Throwable - if anything goes wrong- See Also:
IERXMigration.upgrade
postUpgrade
public void postUpgrade(EOEditingContext editingContext,
EOModel model)
throws Throwable
- Description copied from interface:
IERXPostMigration
- 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.
- Specified by:
postUpgrade in interface IERXPostMigration
- Parameters:
editingContext - the editing context you can perform EO operations with.model - the model being upgraded
- Throws:
Throwable - if something fails
Copyright © 2002 – 2011 Project Wonder.