public abstract class ERAttachmentMigration extends ERXMigrationDatabase.Migration
ALLOWS_NULL, NOT_NULL
Constructor and Description |
---|
ERAttachmentMigration(String tableName,
String columnName,
boolean allowsNull)
Construct an ERAttachmentMigration.
|
Modifier and Type | Method and Description |
---|---|
void |
downgrade(com.webobjects.eocontrol.EOEditingContext editingContext,
ERXMigrationDatabase database) |
NSArray<ERXModelVersion> |
modelDependencies()
Overridden to return null by default
|
void |
upgrade(com.webobjects.eocontrol.EOEditingContext editingContext,
ERXMigrationDatabase database) |
downgrade, languages, upgrade
public ERAttachmentMigration(String tableName, 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.Migration
modelDependencies
in interface IERXMigration
modelDependencies
in class ERXMigrationDatabase.Migration
public void downgrade(com.webobjects.eocontrol.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(com.webobjects.eocontrol.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)
Copyright © 2002 – 2020 Project Wonder.