@@ -186,8 +186,8 @@ class Category p => Migratory p where
186186 {- |
187187 Run an `AlignedList` of `Migration`s.
188188 Create the `MigrationsTable` as @public.schema_migrations@ if it does not already exist.
189− In a transaction for each each `Migration`, query to see if the `Migration` has been executed;
190− if not, execute the `Migration` and insert a row in the `MigrationsTable`.
189+ In one transaction, for each each `Migration` query to see if the `Migration` has been executed;
190+ if not, `up` the `Migration` and insert its `name` in the `MigrationsTable`.
191191 -}
192192 migrateUp
193193 :: AlignedList (Migration p) schemas0 schemas1
@@ -196,8 +196,8 @@ class Category p => Migratory p where
196196 {- |
197197 Rewind an `AlignedList` of `Migration`s.
198198 Create the `MigrationsTable` as @public.schema_migrations@ if it does not already exist.
199− In a transaction for each each `Migration`, query to see if the `Migration` has been executed;
200− if so, rewind the `Migration` and delete its row in the `MigrationsTable`.
199+ In one transaction, for each each `Migration` query to see if the `Migration` has been executed;
200+ if so, `down` the `Migration` and delete its `name` in the `MigrationsTable`.
201201 -}
202202 migrateDown
203203 :: AlignedList (Migration p) schemas0 schemas1
@@ -249,7 +249,6 @@ instance Migratory (Terminally PQ IO) where
249249
250250 migrateUp migration = unsafePQ $
251251 define createMigrations
252− & pqBind okResult
253252 & pqThen (transactionally_ (upMigrations migration))
254253
255254 where
@@ -282,7 +281,6 @@ instance Migratory (Terminally PQ IO) where
282281
283282 migrateDown migrations = unsafePQ $
284283 define createMigrations
285− & pqBind okResult
286284 & pqThen (transactionally_ (downMigrations migrations))
287285
288286 where
@@ -404,7 +402,7 @@ defaultMain connectTo migrations = do
404402 liftIO $ displayRunned runNames >> displayUnrunned unrunNames
405403
406404 suppressNotices :: PQ schema schema IO ()
407− suppressNotices = void . manipulate $
405+ suppressNotices = manipulate_ $
408406 UnsafeManipulation "SET client_min_messages TO WARNING;"
409407
410408 readCommandFromArgs :: IO (Maybe MigrateCommand)