Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
12 lines (7 sloc) 303 Bytes
Haskell database migrations.
For demo:
$ createdb testa
$ createuser -S -R -D -E -P testa
$ echo "grant all privileges on database testa to testa" | psql testa
To drop and recreate
$ dropdb testa; createdb testa && echo "grant all privileges on database testa to testa" | psql testa