diff --git a/src/main/java/com/samskivert/depot/impl/jdbc/PostgreSQLLiaison.java b/src/main/java/com/samskivert/depot/impl/jdbc/PostgreSQLLiaison.java index 30f1353..f249962 100644 --- a/src/main/java/com/samskivert/depot/impl/jdbc/PostgreSQLLiaison.java +++ b/src/main/java/com/samskivert/depot/impl/jdbc/PostgreSQLLiaison.java @@ -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(