Hi all,
I just upgraded from 2.0.5 to 3.5.3. I've run into a problem I can't figure out. We use Postgres in production, and H2 in dev. Generating a fresh dev DB with a changelog like this:
<changeSet author="tnelson" id="20017-0013">
<addColumn tableName="calllistitem">
<column name="summary" type="text" />
</addColumn>
</changeSet>
When hibernate validates the mapping, I get this exception with H2.
org.hibernate.HibernateException: Wrong column type in TEST.PUBLIC.CALLLISTITEM for column summary. Found: clob, expected: longvarchar
Everything seems to work fine with Postgres.
I've tried multiple ways of configuring hibernate, but I really think hibernate is right, this column should really be longvarchar, not clob.
Since this only affects dev, I'm happy to write a changeset to change all the types in H2, but I'm not even sure what I'd specify the new type as.
Is there an easy way to tell configure liquibase to use longvarchar when creates a column of type text?
Is there a better solution?
Thanks
Tony