File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
persistent-postgresql/Database/Persist/Postgresql/Internal Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff 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 ])
654655getAlters 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
You can’t perform that action at this time.
0 commit comments