Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix bug in uniqueness constraint migration

  • Loading branch information...
commit 68c7f0a3ed62e99003f13f5de9b078b4ddd7cf53 1 parent 5ec428f
@snoyberg snoyberg authored
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>
Please sign in to comment.
Something went wrong with that request. Please try again.