Safe Haskell | None |
---|---|
Language | Haskell2010 |
Drifter.PostgreSQL
- data PGMigration
- data family Method a
- data family DBConnection a
- data ChangeHistory = ChangeHistory {
- histId :: ChangeId
- histName :: ChangeName
- histDescription :: Maybe Description
- histTime :: UTCTime
- runMigrations :: Connection -> [Change PGMigration] -> IO (Either String ())
- getChangeHistory :: Connection -> IO [ChangeHistory]
Documentation
data PGMigration Source
Instances
Drifter PGMigration Source | |
data Method PGMigration
| |
data DBConnection PGMigration = DBConnection Connection Source |
data family Method a
Instances
data Method PGMigration
|
data family DBConnection a
Instances
data ChangeHistory Source
Constructors
ChangeHistory | |
Fields
|
runMigrations :: Connection -> [Change PGMigration] -> IO (Either String ()) Source
Takes the list of all migrations, removes the ones that have
already run and runs them. Use this instead of migrate
.
getChangeHistory :: Connection -> IO [ChangeHistory] Source
Check the schema_migrations table for all the migrations that
have previously run. This is run internally by runMigrations
to
determine which migrations to run.