diaspora/diaspora — pull request #2203 by svoop (2011-10-17 20:24:40+00:00)
Title: Make the migration 20111012215141 compatible with Postgres

Two explicit SQL updates don't work on Postgres, however, a simple subquery (which works on both Postgres and MySQL) should do the same trick.