everzet/capifony — pull request #155 by Konrad-Podgorski (2012-07-10 15:05:21+00:00)
Title: Fixed database tasks for postgresql

Hey,

I've finally forced myself to make this PR that solves 2 issues while using capifony with postgresql database

1# fix
Added --clean parameter so dump will include DROP IF EXISTS statement

reference:
http://www.postgresql.org/docs/9.1/static/app-pgdump.html

This is required for command cap database:move:to_local to work if we already have populated database

2# fix
Also I removed invalid --password argument from psql command
Postgresql doesnt allow to pass password as argument, only option is to type it manualy or use pgpass file

reference
http://www.postgresql.org/docs/current/static/libpq-pgpass.html

Let me know if that's ok