Setup
=====

Prerequisites
-------------

apt-get install postgresql postgresql-contrib apgdiff

notes: apgdiff must be >= 2.4

sudo
----

Make sudo not ask password for postgres user. With visudo, add the line:

<your_user>     ALL=(postgres) NOPASSWD:ALL

This line should appear after all rules that match <your_user>.


Database user password
----------------------

sudo -u postgres psql
alter user asterisk with password 'proformatique';
alter role asterisk with superuser;


Postgres authentification
-------------------------

In /etc/postgres/9.1/main/pg_hba.conf, change the line:

local   all             all                                     peer

for:

local   all             all                                     trust


Getting started
---------------

To start, copy defaults.ini to defaults.ini.local and use this command line:


python compare-db-migrations --config=defaults.ini.local