@@ -186,8 +186,8 @@ class Category p => Migratory p where
187 Run an `AlignedList` of `Migration`s.
187 Run an `AlignedList` of `Migration`s.
188 Create the `MigrationsTable` as @public.schema_migrations@ if it does not already exist.
188 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;
189+ In one 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`.
190+ if not, `up` the `Migration` and insert its `name` in the `MigrationsTable`.
192 migrateUp
192 migrateUp
193 :: AlignedList (Migration p) schemas0 schemas1
193 :: AlignedList (Migration p) schemas0 schemas1
@@ -196,8 +196,8 @@ class Category p => Migratory p where
197 Rewind an `AlignedList` of `Migration`s.
197 Rewind an `AlignedList` of `Migration`s.
198 Create the `MigrationsTable` as @public.schema_migrations@ if it does not already exist.
198 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;
199+ In one 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`.
200+ if so, `down` the `Migration` and delete its `name` in the `MigrationsTable`.
202 migrateDown
202 migrateDown
203 :: AlignedList (Migration p) schemas0 schemas1
203 :: AlignedList (Migration p) schemas0 schemas1
@@ -249,7 +249,6 @@ instance Migratory (Terminally PQ IO) where
250 migrateUp migration = unsafePQ $
250 migrateUp migration = unsafePQ $
251 define createMigrations
251 define createMigrations
253 & pqThen (transactionally_ (upMigrations migration))
252 & pqThen (transactionally_ (upMigrations migration))
@@ -282,7 +281,6 @@ instance Migratory (Terminally PQ IO) where
283 migrateDown migrations = unsafePQ $
282 migrateDown migrations = unsafePQ $
284 define createMigrations
283 define createMigrations
286 & pqThen (transactionally_ (downMigrations migrations))
284 & pqThen (transactionally_ (downMigrations migrations))
@@ -404,7 +402,7 @@ defaultMain connectTo migrations = do
404 liftIO $ displayRunned runNames >> displayUnrunned unrunNames
402 liftIO $ displayRunned runNames >> displayUnrunned unrunNames
406 suppressNotices :: PQ schema schema IO ()
404 suppressNotices :: PQ schema schema IO ()
407− suppressNotices = void . manipulate $
405+ suppressNotices = manipulate_ $
408 UnsafeManipulation "SET client_min_messages TO WARNING;"
406 UnsafeManipulation "SET client_min_messages TO WARNING;"
410 readCommandFromArgs :: IO (Maybe MigrateCommand)
408 readCommandFromArgs :: IO (Maybe MigrateCommand)