On a project I work I have sometimes have to deal with changes on the table structure, like adding fields. Is there a script that can I use for generate a migration SQL file with only the changes?
PHP, bash or Perl would be nice. The database is postgresql.