Migration scripts were tweaked to work on PostgreSQL