Fix postgres for migrating a generated id int column to long.

This commit is contained in:
Ray J. Greenwell
2015-05-07 13:19:11 -07:00
parent 4e6d824d10
commit 009ad985a0
@@ -82,6 +82,12 @@ public class PostgreSQLLiaison extends BaseLiaison
Boolean nullable, Boolean unique, String defaultValue)
throws SQLException
{
// We can create a column as "BIGSERIAL" but when changing we need to say "BIGINT".
// TODO: does this handle all cases?
if ("BIGSERIAL".equalsIgnoreCase(type)) {
type = "BIGINT";
}
StringBuilder lbuf = new StringBuilder();
if (type != null) {
executeQuery(