This repository was archived by the owner on Sep 20, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +9
-9
lines changed
Database/PostgreSQL/Simple
Database/PostgreSQL/Simple Expand file tree Collapse file tree 5 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 12
12
-- For usage, see Readme.markdown.
13
13
14
14
{-# LANGUAGE CPP #-}
15
- {-# LANGUAGE OverloadedStrings #-}
16
15
{-# LANGUAGE LambdaCase #-}
16
+ {-# LANGUAGE OverloadedStrings #-}
17
17
18
18
module Database.PostgreSQL.Simple.Migration
19
19
(
@@ -168,7 +168,7 @@ executeValidation con verbose cmd = case cmd of
168
168
return (MigrationError $ " Checksum mismatch: " ++ name)
169
169
170
170
goScripts _ [] = return MigrationSuccess
171
- goScripts path (x: xs) = do
171
+ goScripts path (x: xs) =
172
172
(validate x =<< BS. readFile (path ++ " /" ++ x)) >>= \ case
173
173
e@ (MigrationError _) ->
174
174
return e
Original file line number Diff line number Diff line change 10
10
-- A collection of utilites for database migrations.
11
11
12
12
{-# LANGUAGE CPP #-}
13
- {-# LANGUAGE OverloadedStrings #-}
14
13
{-# LANGUAGE LambdaCase #-}
14
+ {-# LANGUAGE OverloadedStrings #-}
15
15
16
16
module Database.PostgreSQL.Simple.Util
17
17
( existsTable
Original file line number Diff line number Diff line change 10
10
-- A standalone program for the postgresql-simple-migration library.
11
11
12
12
{-# LANGUAGE CPP #-}
13
- {-# LANGUAGE OverloadedStrings #-}
14
13
{-# LANGUAGE LambdaCase #-}
14
+ {-# LANGUAGE OverloadedStrings #-}
15
15
16
16
module Main (
17
17
main
@@ -83,10 +83,10 @@ run (Just cmd) verbose =
83
83
(MigrationValidation (MigrationDirectory dir)) verbose con
84
84
85
85
parseCommand :: [String ] -> Maybe Command
86
- parseCommand (" init" : url: _) = Just (Initialize url)
87
- parseCommand (" migrate" : url: dir: _) = Just (Migrate url dir)
86
+ parseCommand (" init" : url: _) = Just (Initialize url)
87
+ parseCommand (" migrate" : url: dir: _) = Just (Migrate url dir)
88
88
parseCommand (" validate" : url: dir: _) = Just (Validate url dir)
89
- parseCommand _ = Nothing
89
+ parseCommand _ = Nothing
90
90
91
91
printUsage :: IO ()
92
92
printUsage = do
Original file line number Diff line number Diff line change 9
9
--
10
10
-- A collection of postgresql-simple-migration specifications.
11
11
12
- {-# LANGUAGE OverloadedStrings #-}
13
12
{-# LANGUAGE CPP #-}
14
13
{-# LANGUAGE LambdaCase #-}
14
+ {-# LANGUAGE OverloadedStrings #-}
15
15
16
16
module Database.PostgreSQL.Simple.MigrationTest where
17
17
Original file line number Diff line number Diff line change 9
9
--
10
10
-- The test entry-point for postgresql-simple-migration.
11
11
12
- {-# LANGUAGE OverloadedStrings #-}
13
12
{-# LANGUAGE CPP #-}
14
13
{-# LANGUAGE LambdaCase #-}
14
+ {-# LANGUAGE OverloadedStrings #-}
15
15
16
16
module Main
17
17
( main
You can’t perform that action at this time.
0 commit comments