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:
David Pursehouse
2016-01-19 14:47:08 +09:00
parent 6e1b2aa088
commit 42d658bcb8

View File

@@ -176,7 +176,7 @@ public abstract class SchemaVersion {
throws OrmException {
JdbcSchema s = (JdbcSchema) db;
try (JdbcExecutor e = new JdbcExecutor(s)) {
s.renameField(e, table, from, to);
s.renameColumn(e, table, from, to);
}
}