I have a PlayFramework application (Scala/2.8.1) which uses PostgreSQL in production. I'm trying to create tests for it using H2. The issue is that some of my evolutions use SQL statements that H2 does not recognize. Specifically, H2 chokes on this:
CREATE UNIQUE INDEX lowercase_user_names ON users (lower(username));
Is there a way I can make H2 ignore this statement, or not execute it while in Test
?