From 5dd3ae92a59d74b4c6eaf56fac4b345811145921 Mon Sep 17 00:00:00 2001 From: Andrzej Kapolka Date: Thu, 15 Jul 2010 00:22:28 +0000 Subject: [PATCH] Looks like this should be the column name, not the field name. --- src/java/com/samskivert/depot/SchemaMigration.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/java/com/samskivert/depot/SchemaMigration.java b/src/java/com/samskivert/depot/SchemaMigration.java index 68c0080..0080ae0 100644 --- a/src/java/com/samskivert/depot/SchemaMigration.java +++ b/src/java/com/samskivert/depot/SchemaMigration.java @@ -149,8 +149,8 @@ public abstract class SchemaMigration extends Modifier @Override protected int invoke (Connection conn, DatabaseLiaison liaison) throws SQLException { - log.info("Updating type of '" + _fieldName + "' in " + _tableName); - return liaison.changeColumn(conn, _tableName, _fieldName, _newColumnDef.type, + log.info("Updating type of '" + _columnName + "' in " + _tableName); + return liaison.changeColumn(conn, _tableName, _columnName, _newColumnDef.type, _newColumnDef.nullable, _newColumnDef.unique, _newColumnDef.defaultValue) ? 1 : 0; }