While I'm in there, this also looks wrong.

This commit is contained in:
Andrzej Kapolka
2010-07-15 00:30:40 +00:00
parent 5dd3ae92a5
commit cd94a13551
@@ -79,7 +79,7 @@ public abstract class SchemaMigration extends Modifier
public Rename (int targetVersion, String oldColumnName, ColumnExp newColumn) { public Rename (int targetVersion, String oldColumnName, ColumnExp newColumn) {
super(targetVersion); super(targetVersion);
_oldColumnName = oldColumnName; _oldColumnName = oldColumnName;
_newColumnName = newColumn.name; _fieldName = newColumn.name;
} }
@Override public boolean runBeforeDefault () { @Override public boolean runBeforeDefault () {
@@ -89,7 +89,8 @@ public abstract class SchemaMigration extends Modifier
@Override @Override
public void init (String tableName, Map<String, FieldMarshaller<?>> marshallers) { public void init (String tableName, Map<String, FieldMarshaller<?>> marshallers) {
super.init(tableName, marshallers); super.init(tableName, marshallers);
FieldMarshaller<?> fm = requireMarshaller(marshallers, _newColumnName); FieldMarshaller<?> fm = requireMarshaller(marshallers, _fieldName);
_newColumnName = fm.getColumnName();
_newColumnDef = fm.getColumnDefinition(); _newColumnDef = fm.getColumnDefinition();
} }
@@ -119,7 +120,7 @@ public abstract class SchemaMigration extends Modifier
conn, _tableName, _oldColumnName, _newColumnName, _newColumnDef) ? 1 : 0; conn, _tableName, _oldColumnName, _newColumnName, _newColumnDef) ? 1 : 0;
} }
protected String _oldColumnName, _newColumnName; protected String _oldColumnName, _fieldName, _newColumnName;
protected ColumnDefinition _newColumnDef; protected ColumnDefinition _newColumnDef;
} }