relocant-1.0.0: A PostgreSQL migration CLI tool and library
Safe HaskellSafe-Inferred
LanguageHaskell2010

Relocant.Merge

Description

This modules deals with merging scripts and applied migrations, and finding inconsistencies.

Synopsis

Documentation

data Merged Source #

The result of merging Scripts and Applied migrations.

Constructors

Merged 

Fields

  • unrecorded :: [Script]

    A script that does not have a corresponding recorded migration, when there is a recorded migration with a higher ID

  • scriptMissing :: [Applied]

    A recorded migration that does not have a corresponding script

  • contentMismatch :: [ContentMismatch]

    A recorded migration and a script have the same ID but different content

  • unapplied :: [Script]

    An unapplied script that has a higher ID than any recorded migration

Instances

Instances details
ToJSON Merged Source # 
Instance details

Defined in Relocant.Merge

Show Merged Source # 
Instance details

Defined in Relocant.Merge

Eq Merged Source # 
Instance details

Defined in Relocant.Merge

Methods

(==) :: Merged -> Merged -> Bool #

(/=) :: Merged -> Merged -> Bool #

data ContentMismatch Source #

The applied migration and its purported script differ in content.

Constructors

ContentMismatch 

Fields

canApply :: Merged -> Bool Source #

No problems has been discovered after the merge.

converged :: Merged -> Bool Source #

No problems has been discovered after the merge, and there are no migration scripts to apply.