ViewsQueryAlter incorrectly maps the revision base field
Changes look at identifying the revision key and making that part of
the basis for the join to the base table, currently this is id
but
if we have a query that references something like node types (think
an alter that applies on moderation views) it causes SQL errors as it
falls over where it tries to join the base table on the id
field where
the revision key between them would be vid
.
This looks at trying to be a bit more dynamic for the column that joins.
Closes #3219073