Issue #2652652 by dawehner, Sam152, Charlie ChX Negyesi, Manuel Garcia,...
Issue #2652652 by dawehner, Sam152, Charlie ChX Negyesi, Manuel Garcia, mikemiles86, minorOffense, Lendude, jibran, alexpott, xjm, effulgentsia, webchick: Provide a relationship from the revision table to the main table
(cherry picked from commit 45347fa5)