Ensure migrations run on PostgreSQL

Change-Id: I77208d43613a8406e826bcee71a41eedb1e16754
Closes-Bug: 1267509