public abstract class ERAttachmentMigration extends ERXMigrationDatabase.Migration
ALLOWS_NULL, NOT_NULL| Constructor and Description |
|---|
ERAttachmentMigration(java.lang.String tableName,
java.lang.String columnName,
boolean allowsNull)
Construct an ERAttachmentMigration.
|
| Modifier and Type | Method and Description |
|---|---|
void |
downgrade(EOEditingContext editingContext,
ERXMigrationDatabase database) |
NSArray<ERXModelVersion> |
modelDependencies()
Overridden to return null by default
|
void |
upgrade(EOEditingContext editingContext,
ERXMigrationDatabase database) |
downgrade, languages, upgradepublic ERAttachmentMigration(java.lang.String tableName,
java.lang.String columnName,
boolean allowsNull)
tableName - the name of the table to add an attachment tocolumnName - the name of the attachment foreign key columnallowsNull - whether or not the attachment is allowed to be null
tableName - - アタッチメントを追加するテーブル名columnName - - アタッチメント外部キーの名前allowsNull - - アタッチメントが null 可能かどうか
public NSArray<ERXModelVersion> modelDependencies()
ERXMigrationDatabase.MigrationmodelDependencies in interface IERXMigrationmodelDependencies in class ERXMigrationDatabase.Migrationpublic void downgrade(EOEditingContext editingContext, ERXMigrationDatabase database) throws java.lang.Throwable
downgrade in class ERXMigrationDatabase.MigrationeditingContext - the editing contextdatabase - the migration databasejava.lang.Throwable - if anything goes wrongIERXMigration#downgrade(EOEditingContext, EOAdaptorChannel, EOModel)public void upgrade(EOEditingContext editingContext, ERXMigrationDatabase database) throws java.lang.Throwable
upgrade in class ERXMigrationDatabase.MigrationeditingContext - the editing contextdatabase - the migration databasejava.lang.Throwable - if anything goes wrongIERXMigration#upgrade(EOEditingContext, EOAdaptorChannel, EOModel)Copyright © 2002 – 2022 Project Wonder.