https://github.com/afiore/egress
Minimalisitic SQL schema migrations
https://github.com/afiore/egress
Last synced: about 1 year ago
JSON representation
Minimalisitic SQL schema migrations
- Host: GitHub
- URL: https://github.com/afiore/egress
- Owner: afiore
- License: other
- Created: 2013-07-13T14:36:48.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2013-07-13T15:01:20.000Z (almost 13 years ago)
- Last Synced: 2023-03-11T02:19:12.259Z (over 3 years ago)
- Language: Haskell
- Homepage:
- Size: 133 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Egress
======
A simple command line tool for managing SQL schema migrations.
Migrations are stored on the file system, and are expressed as plain old SQL.
Currently supports only PostgreSQL and Sqlite (via HDBC).
## Installation
git clone git@github.com:afiore/egress.git && cd egress
cabal clean && cabal configure && cabal install
The program executable will be placed in `dist/build/egress`
## Usage
Usage: egress [options] [version|set-version|up|rollback]
Options:
-v n --schema-version=n Target schema version
-m ./migrations-dir --migration-dir=./migrations-dir Path to the migrations folder
-d ./dbs/example.sqlite3 --db-connection=./dbs/example.sqlite3 DB connection string
-D sqlite|postgres --driver=sqlite|postgres HDBC Adapter (i.e. sqlite, postgres)
-V --verbose Verbose mode
-s --silent Silent mode
-h --help Show help