debug migration for postgresql