Skip to content
Browse files

Fix bug in uniqueness constraint migration

  • Loading branch information...
1 parent 5ec428f commit 68c7f0a3ed62e99003f13f5de9b078b4ddd7cf53 @snoyberg snoyberg committed Feb 21, 2013
View
2 persistent-postgresql/Database/Persist/Postgresql.hs
@@ -381,7 +381,7 @@ getAlters (c1, u1) (c2, u2) =
Nothing -> AddUniqueConstraint name cols : getAltersU news old
Just ocols ->
let old' = filter (\(x, _) -> x /= name) old
- in if sort cols == ocols
+ in if sort cols == sort ocols
then getAltersU news old'
else DropConstraint name
: AddUniqueConstraint name cols
View
2 persistent-postgresql/persistent-postgresql.cabal
@@ -1,5 +1,5 @@
name: persistent-postgresql
-version: 1.1.3
+version: 1.1.3.1
license: MIT
license-file: LICENSE
author: Felipe Lessa, Michael Snoyman <michael@snoyman.com>

0 comments on commit 68c7f0a

Please sign in to comment.
Something went wrong with that request. Please try again.