| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Simplex.Messaging.Agent.Store.Migrations
Documentation
data MigrationsToRun Source #
Constructors
| MTRUp [Migration] | |
| MTRDown [DownMigration] | |
| MTRNone |
Instances
| Show MigrationsToRun Source # | |
Defined in Simplex.Messaging.Agent.Store.Shared Methods showsPrec :: Int -> MigrationsToRun -> ShowS show :: MigrationsToRun -> String showList :: [MigrationsToRun] -> ShowS | |
| Eq MigrationsToRun Source # | |
Defined in Simplex.Messaging.Agent.Store.Shared Methods (==) :: MigrationsToRun -> MigrationsToRun -> Bool (/=) :: MigrationsToRun -> MigrationsToRun -> Bool | |
data DownMigration Source #
Constructors
| DownMigration | |
Instances
| Show DownMigration Source # | |
Defined in Simplex.Messaging.Agent.Store.Shared Methods showsPrec :: Int -> DownMigration -> ShowS show :: DownMigration -> String showList :: [DownMigration] -> ShowS | |
| Eq DownMigration Source # | |
Defined in Simplex.Messaging.Agent.Store.Shared | |
Constructors
| DBMigrate | |
Fields
| |
sharedMigrateSchema :: DBMigrate -> Bool -> [Migration] -> MigrationConfirmation -> IO (Either MigrationError ()) Source #
migrationsToRun :: [Migration] -> [Migration] -> Either MTRError MigrationsToRun Source #
toDownMigration :: Migration -> Maybe DownMigration Source #