on dev help sign in
fix tests
commit40fe11d85bbe7c0e6fea7ad1de2de2d87d5d259c authorEitan Chatav <eitan@Eitans-MacBook-Pro.local> dateTue 26 Mar 2019, 12:20 (8 years ago) parent2ec27c0
1 file changed+14−2
squeal-postgresql/src/Squeal/PostgreSQL/Migration.hs+14−2
squeal-postgresql/src/Squeal/PostgreSQL/Migration.hs+14−2
@@ -81,21 +81,33 @@ Rollback
8181We can also create a simple executable using `defaultMain`.
8282
8383>>> let main = defaultMain "host=localhost port=5432 dbname=exampledb" migrations
84+
8485>>> withArgs [] main
8586Invalid command: "". Use:
8687migrate to run all available migrations
8788rollback to rollback all available migrations
8889status to display migrations run and migrations left to run
90+
8991>>> withArgs ["status"] main
9092Migrations already run:
9193 None
9294Migrations left to run:
9395 - make users table
9496 - make emails table
97+
9598>>> withArgs ["migrate"] main
96−asdf
99+Migrations already run:
100+ - make users table
101+ - make emails table
102+Migrations left to run:
103+ None
104+
97105>>> withArgs ["rollback"] main
98−asdf
106+Migrations already run:
107+ None
108+Migrations left to run:
109+ - make users table
110+ - make emails table
99111-}
100112{-# LANGUAGE
101113 DataKinds