Adds migration that fixes old journals.

Parent ids in planning element journals remained the same during the
earlier journal migrations and need to be fixed. This migration works
for postgres only.