SchemaVersion: Fix renameColumn method
The renameColumn method calls JdbcSchema.renameField, and results in the exception: Relation table_name does not have field_name Change it to call JdbcSchema.renameColumn. Change-Id: Icffbbcced6416f7c3f86fdabf72d493babf4d88d
This commit is contained in:
@@ -176,7 +176,7 @@ public abstract class SchemaVersion {
|
|||||||
throws OrmException {
|
throws OrmException {
|
||||||
JdbcSchema s = (JdbcSchema) db;
|
JdbcSchema s = (JdbcSchema) db;
|
||||||
try (JdbcExecutor e = new JdbcExecutor(s)) {
|
try (JdbcExecutor e = new JdbcExecutor(s)) {
|
||||||
s.renameField(e, table, from, to);
|
s.renameColumn(e, table, from, to);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user