check the pg version instead of the xivo version for the migration