Skip to content

Commit 374673e

Browse files
committed
format
1 parent f0eaa71 commit 374673e

File tree

1 file changed

+4
-3
lines changed
  • persistent-postgresql/Database/Persist/Postgresql/Internal

1 file changed

+4
-3
lines changed

persistent-postgresql/Database/Persist/Postgresql/Internal/Migration.hs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -566,8 +566,9 @@ migrateEntityFromSchemaState schemaState allDefs entity =
566566
-- more info
567567
dubiouslyRemoveReferences oldCol =
568568
case List.find (\c -> cName c == cName oldCol) newcols of
569-
Just new | isNothing (cReference new) ->
570-
oldCol { cReference = Nothing }
569+
Just new
570+
| isNothing (cReference new) ->
571+
oldCol{cReference = Nothing}
571572
_ ->
572573
-- otherwise no-op, `getAlters` will handle dropping this for us.
573574
oldCol
@@ -652,7 +653,7 @@ getAlters
652653
-> ([Column], [(ConstraintNameDB, [FieldNameDB])])
653654
-> ([AlterColumn], [AlterTable])
654655
getAlters defs def (c1, u1) (c2, u2) =
655-
(getAltersC c1 c2, getAltersU u1 u2)
656+
(getAltersC c1 c2, getAltersU u1 u2)
656657
where
657658
getAltersC [] old =
658659
map (\x -> Drop x $ SafeToRemove $ safeToRemove def $ cName x) old

0 commit comments

Comments
 (0)