drifter-postgresql-0.2.1: PostgreSQL support for the drifter schema migration tool
Safe HaskellNone
LanguageHaskell2010

Drifter.PostgreSQL

Synopsis

Documentation

data PGMigration Source #

Instances

Instances details
Drifter PGMigration Source # 
Instance details

Defined in Drifter.PostgreSQL

data DBConnection PGMigration Source # 
Instance details

Defined in Drifter.PostgreSQL

data DBConnection PGMigration = DBConnection PGMigrationConnection
data Method PGMigration Source # 
Instance details

Defined in Drifter.PostgreSQL

data family Method a #

Instances

Instances details
data Method PGMigration Source # 
Instance details

Defined in Drifter.PostgreSQL

data family DBConnection a #

Instances

Instances details
data DBConnection PGMigration Source # 
Instance details

Defined in Drifter.PostgreSQL

data DBConnection PGMigration = DBConnection PGMigrationConnection

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 #

Get all changes from schema_migrations table for all the migrations that have previously run.

getChangeNameHistory :: Connection -> IO [ChangeName] Source #

Get just the names of all changes from schema_migrations for migrations that have previously run.