This repository was archived by the owner on Sep 20, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
src/Database/PostgreSQL/Simple Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ module Database.PostgreSQL.Simple.Migration
37
37
38
38
-- * Migration result actions
39
39
, getMigrations
40
+ , getMigrations'
40
41
41
42
-- * Migration result types
42
43
, SchemaMigration (.. )
@@ -337,10 +338,14 @@ data MigrationContext' = MigrationContext'
337
338
, migrationTableName :: ! BS. ByteString
338
339
-- ^ The name of the table that stores the migrations
339
340
}
341
+ --
342
+ -- | Produces a list of all executed 'SchemaMigration's.
343
+ getMigrations :: Connection -> IO [SchemaMigration ]
344
+ getMigrations con = getMigrations' con " schema_migrations"
340
345
341
346
-- | Produces a list of all executed 'SchemaMigration's.
342
- getMigrations :: Connection -> BS. ByteString -> IO [SchemaMigration ]
343
- getMigrations con tableName = query_ con q
347
+ getMigrations' :: Connection -> BS. ByteString -> IO [SchemaMigration ]
348
+ getMigrations' con tableName = query_ con q
344
349
where q = mconcat
345
350
[ " select filename, checksum, executed_at "
346
351
, " from " <> Query tableName <> " order by executed_at asc"
You can’t perform that action at this time.
0 commit comments