Skip to content

Commit f0eaa71

Browse files
committed
remove tracing
1 parent a13c912 commit f0eaa71

File tree

1 file changed

+1
-6
lines changed
  • persistent-postgresql/Database/Persist/Postgresql/Internal

1 file changed

+1
-6
lines changed

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

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import Control.Monad
1313
import Control.Monad.Except
1414
import Control.Monad.IO.Class
1515
import Data.Acquire (with)
16-
import Debug.Trace
1716
import Data.Conduit
1817
import qualified Data.Conduit.List as CL
1918
import Data.Either (partitionEithers)
@@ -493,7 +492,6 @@ migrateEntitiesStructured
493492
-> IO (Either [Text] [AlterDB])
494493
migrateEntitiesStructured getStmt allDefs defsToMigrate = do
495494
r <- collectSchemaState getStmt (map getEntityDBName defsToMigrate)
496-
-- putStrLn $ "collectSchemaState: " <> show r
497495
pure $ case r of
498496
Right schemaState ->
499497
migrateEntitiesFromSchemaState schemaState allDefs defsToMigrate
@@ -654,10 +652,7 @@ getAlters
654652
-> ([Column], [(ConstraintNameDB, [FieldNameDB])])
655653
-> ([AlterColumn], [AlterTable])
656654
getAlters defs def (c1, u1) (c2, u2) =
657-
if getEntityDBName def == EntityNameDB "child"
658-
then traceShow ((c1, u1), (c2, u2)) $
659-
traceShowId (getAltersC c1 c2, getAltersU u1 u2)
660-
else (getAltersC c1 c2, getAltersU u1 u2)
655+
(getAltersC c1 c2, getAltersU u1 u2)
661656
where
662657
getAltersC [] old =
663658
map (\x -> Drop x $ SafeToRemove $ safeToRemove def $ cName x) old

0 commit comments

Comments
 (0)