-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | PostgreSQL support for the drifter schema migration tool -- @package drifter-postgresql @version 0.0.1 module Drifter.PostgreSQL data PGMigration data ChangeHistory ChangeHistory :: ChangeId -> ChangeName -> Maybe Description -> UTCTime -> ChangeHistory histId :: ChangeHistory -> ChangeId histName :: ChangeHistory -> ChangeName histDescription :: ChangeHistory -> Maybe Description histTime :: ChangeHistory -> UTCTime -- | Takes the list of all migrations, removes the ones that have already -- run and runs them. Use this instead of migrate. runMigrations :: Connection -> [Change PGMigration] -> IO (Either String ()) -- | Check the schema_migrations table for all the migrations that have -- previously run. getChangeHistory :: Connection -> IO [ChangeHistory] instance Eq ChangeId instance Ord ChangeId instance Show ChangeId instance FromField ChangeId instance Show ChangeHistory instance FromRow ChangeHistory instance Ord ChangeHistory instance Eq ChangeHistory instance Drifter PGMigration