Skip to content

Commit

Permalink
Fix unique constraints on H2
Browse files Browse the repository at this point in the history
This was broken in master due to the combination of #1523 and #1169.
  • Loading branch information
szeiger committed Jan 25, 2017
1 parent d120ba1 commit e96bfd2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions slick/src/main/scala/slick/jdbc/H2Profile.scala
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ trait H2Profile extends JdbcProfile {
if(notNull) sb append " NOT NULL" if(notNull) sb append " NOT NULL"
if(primaryKey) sb append " PRIMARY KEY" if(primaryKey) sb append " PRIMARY KEY"
if(autoIncrement) sb append " AUTO_INCREMENT" if(autoIncrement) sb append " AUTO_INCREMENT"
if(unique) sb append " UNIQUE"
} }
} }


Expand Down

0 comments on commit e96bfd2

Please sign in to comment.