snap-app-0.6.0: Simple modules for writing apps with Snap, abstracted from hpaste.

Safe HaskellNone

Snap.App.Migrate

Description

Migration library

Synopsis

Documentation

migrate :: Bool -> [(Int, Model c s Int64)] -> Model c s ()Source

Migrate the DB to the latest version.

setVersion :: Int -> Model c s ()Source

Set the current database version.

ensureExists :: Model c s ()Source

Ensure the version table exists.

createVersion :: Model c s ()Source

Create the version number.

echo :: String -> Model c s ()Source

Just print to stdout for now.