Permalink
Browse files

Fix unique constraints on H2

This was broken in master due to the combination of #1523 and #1169.
  • Loading branch information...
1 parent d120ba1 commit e96bfd25bc954fe26df6f2970906e031a5464e55 @szeiger szeiger committed Jan 25, 2017
Showing with 1 addition and 0 deletions.
  1. +1 −0 slick/src/main/scala/slick/jdbc/H2Profile.scala
@@ -114,6 +114,7 @@ trait H2Profile extends JdbcProfile {
if(notNull) sb append " NOT NULL"
if(primaryKey) sb append " PRIMARY KEY"
if(autoIncrement) sb append " AUTO_INCREMENT"
+ if(unique) sb append " UNIQUE"
}
}

0 comments on commit e96bfd2

Please sign in to comment.