-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | PostgreSQL support for the drifter schema migration tool -- -- Support for postgresql-simple Query migrations as well as arbitrary -- Haskell IO functions. Be sure to check the examples dir for a usage -- example. @package drifter-postgresql @version 0.0.2 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. This is run internally by runMigrations to -- determine which migrations to run. getChangeHistory :: Connection -> IO [ChangeHistory] instance GHC.Show.Show Drifter.PostgreSQL.ChangeHistory instance Database.PostgreSQL.Simple.FromField.FromField Drifter.PostgreSQL.ChangeId instance GHC.Show.Show Drifter.PostgreSQL.ChangeId instance GHC.Classes.Ord Drifter.PostgreSQL.ChangeId instance GHC.Classes.Eq Drifter.PostgreSQL.ChangeId instance Drifter.Graph.Drifter Drifter.PostgreSQL.PGMigration instance GHC.Classes.Eq Drifter.PostgreSQL.ChangeHistory instance GHC.Classes.Ord Drifter.PostgreSQL.ChangeHistory instance Database.PostgreSQL.Simple.FromRow.FromRow Drifter.PostgreSQL.ChangeHistory