public class ERTaggableEntity0 extends ERXMigrationDatabase.Migration
ALLOWS_NULL, NOT_NULL
Constructor and Description |
---|
ERTaggableEntity0(String entityName)
Constructs an ERTaggableEntity0.
|
ERTaggableEntity0(String entityName,
String tagsRelationshipName)
Constructs an ERTaggableEntity0.
|
ERTaggableEntity0(String entityName,
String tagsRelationshipName,
String tagEntityName)
Constructs an ERTaggableEntity0.
|
Modifier and Type | Method and Description |
---|---|
void |
downgrade(EOEditingContext editingContext,
ERXMigrationDatabase database) |
NSArray<ERXModelVersion> |
modelDependencies()
Overridden to return null by default
|
static void |
upgrade(EOEditingContext editingContext,
EOAdaptorChannel channel,
EOModel model,
String itemEntityName) |
static void |
upgrade(EOEditingContext editingContext,
EOAdaptorChannel channel,
EOModel model,
String itemEntityName,
String tagsRelationshipName) |
static void |
upgrade(EOEditingContext editingContext,
EOAdaptorChannel channel,
EOModel model,
String entityName,
String tagsRelationshipName,
String tagEntityName)
If you don't want to subclass ERTaggableEntity0, you can call this static method from your
own migration.
|
void |
upgrade(EOEditingContext editingContext,
ERXMigrationDatabase database) |
downgrade, languages, upgrade
public ERTaggableEntity0(String entityName)
entityName
- the name of your entity to tagpublic ERTaggableEntity0(String entityName, String tagsRelationshipName)
entityName
- the name of your entity to tagtagsRelationshipName
- the name of the flattened to-many relationship to ERTag (defaults to "tags")public ERTaggableEntity0(String entityName, String tagsRelationshipName, String tagEntityName)
entityName
- the name of your entity to tagtagsRelationshipName
- the name of the flattened to-many relationship to ERTag (defaults to "tags")tagEntityName
- the name of the tag entity (defaults to "ERTag")public NSArray<ERXModelVersion> modelDependencies()
ERXMigrationDatabase.Migration
modelDependencies
in interface IERXMigration
modelDependencies
in class ERXMigrationDatabase.Migration
public void downgrade(EOEditingContext editingContext, ERXMigrationDatabase database) throws Throwable
downgrade
in class ERXMigrationDatabase.Migration
editingContext
- the editing contextdatabase
- the migration databaseThrowable
- if anything goes wrongIERXMigration.downgrade(EOEditingContext, EOAdaptorChannel, EOModel)
public void upgrade(EOEditingContext editingContext, ERXMigrationDatabase database) throws Throwable
upgrade
in class ERXMigrationDatabase.Migration
editingContext
- the editing contextdatabase
- the migration databaseThrowable
- if anything goes wrongIERXMigration.upgrade(EOEditingContext, EOAdaptorChannel, EOModel)
public static void upgrade(EOEditingContext editingContext, EOAdaptorChannel channel, EOModel model, String itemEntityName) throws SQLException
SQLException
public static void upgrade(EOEditingContext editingContext, EOAdaptorChannel channel, EOModel model, String itemEntityName, String tagsRelationshipName) throws SQLException
SQLException
public static void upgrade(EOEditingContext editingContext, EOAdaptorChannel channel, EOModel model, String entityName, String tagsRelationshipName, String tagEntityName) throws SQLException
editingContext
- the editing contextchannel
- the adaptor channelmodel
- the modelentityName
- the name of your entity to tagtagsRelationshipName
- the name of the flattened to-many relationship to ERTag (defaults to "tags")tagEntityName
- the name of the tag entity (defaults to "ERTag")SQLException
- if the update script failsCopyright © 2002 – 2024 Project Wonder.